1 条题解
-
0
yasuo👀️
#include <iostream> int main(){ short q,a,w,fc[1001][50]={};std::cin>>q; for(int i=0;i<q;i++){ std::cin>>a;fc[a][0]++; w=fc[a][0];std::cin>>fc[a][w];} std::cin>>q; for(int i=0;i<q;i++){ std::cin>>a;w=fc[a][0]; if(w==0) std::cout<<"\n"; else if(w%2==1) std::cout<<fc[a][w/2+1]<<"\n"; else std::cout<<fc[a][w/2]<<" "<<fc[a][w/2+1]<<"\n";} return 0;}
- 1
信息
- ID
- 301
- 时间
- 1000ms
- 内存
- 128MiB
- 难度
- 1
- 标签
- 递交数
- 90
- 已通过
- 62
- 上传者