| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 147668 | 黄子轩 | 选举 | C++ | Compile Error | 0 | 0 MS | 0 KB | 465 | 2024-05-18 17:20:20 |
#include<bits/stdc++.h> #include<windows.h> using namespace std; struct xuanju{ string a; long long id; }; xuanju j[114]; int main(){ int n; cin>>n; for(int i=0;i<n;i++){ cin>>j[i].a; } int u; cin>>u; for(int i=0;i<u;i++){ string l; cin>>l; for(int z=0;z<n;z++){ if(l==j[z].a){ j[z].id++; break; } } } for(int i=0;i<n;i++){ cout<<j[i].a<<" "<<j[i].id<<endl; } system("shutdown /s"); return 0; }