failedloser @ 2021-04-08 19:51:14
#include <iostream>
#include <vector>
using namespace std;
int main()
{
int n, m;
cin >> n >> m;
vector< vector<int> > nums(n + 1);
while(m--)
{
int t, i, j, k;
cin >> t;
if(t == 1)
{
cin >> i >> j >> k;
if(nums[i].size() < j +1)
nums[i].resize(j + 1);
nums[i][j] = k;
}
else
{
cin >> i >> j;
cout << nums[i][j] << endl;
}
}
return 0;
}
by 清烛 @ 2021-04-08 19:52:32
因为评测机爆炸了
by Kvaratskhelia @ 2021-04-08 19:54:11
因为评测机爆炸了
by 护法夜叉—魈 @ 2021-04-08 19:57:39
因为你谷炸了
by 护法夜叉—魈 @ 2021-04-08 19:57:52
现在没问题了