为什么就过了俩,佬佬救救

P3613 【深基15.例2】寄包柜

《都是紫色》
by luoguandy @ 2023-12-13 16:42:50


试试我的,和你的想法差不多 ``` #include<bits/stdc++.h> using namespace std; int n,q; int main() { cin>>n>>q; vector<map<int,int > >nn(n+1); int a,b,c,d; for(int i=1;i<=q;i++) { cin>>a; if(a==1) { cin>>b>>c>>d; nn[b][c]=d; } else { cin>>b>>c; cout<<nn[b][c]<<endl; } } return 0; } ``` @[naseele](/user/1165431)
by szlh_XJS @ 2024-02-14 14:25:51


|