QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#576818 | #9320. Find the Easiest Problem | Hythay | Compile Error | / | / | Python3 | 491b | 2024-09-19 22:39:36 | 2024-09-19 22:39:36 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
int t;
int n;
int main(){
cin>>t;
while(t--){
map<string,set<string>> mp;
cin>>n;
while(n--){
string a,b,c;
cin>>a>>b>>c;
// cout << a<<b<<c;
if (c=="accepted") {
mp[b].insert(a);
}
}
int ans = 0;
string p;
for(auto &pair:mp){
if (pair.second.size() > ans){
p = pair.first;
ans = pair.second.size();
}
}
cout <<p<<endl;
}
return 0;
}
Details
File "answer.code", line 3 using namespace std; ^^^^^^^^^ SyntaxError: invalid syntax