0kdt_BT @ 2020-04-03 16:11:09
#include<iostream>
const long long MAXSIZE=1e+9;
const long long MAX=1E+5;
using namespace std;
typedef struct BOX{
long long things[MAXSIZE];
}box;
int main(void){
int num;
long long count;
cin>>num>>count;
box Box[MAX]={0};
int flag,a;
long long b;
for(int i=1;i<=count;i++){
cin>>flag>>a>>b;
if(flag==1){
long long tmp;
cin>>tmp;
if(tmp==0)
Box[a].things[b]=0;
else
Box[a].things[b]=tmp;
}
else if(flag==2){
cout<<Box[a].things[b]<<endl;
}
}
return 0;
}
by __gcd @ 2020-04-03 18:03:37
@杨氏之子 @Xyzl 搞得好像他的头像和我的一样,呵呵。
by 杨氏之子 @ 2020-04-03 18:17:04
@一只大头
I E E
by cleverxia @ 2020-04-24 22:38:38
第十三行的 box Box[MAX]={0};
改成
map<int,map<int,int> >Box;
by cleverxia @ 2020-04-24 22:39:44
1E5*1E9=?
by 羽儇 @ 2020-10-06 21:11:27