QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#578768 | #9320. Find the Easiest Problem | jk231528 | WA | 1ms | 3596kb | C++14 | 502b | 2024-09-20 21:12:29 | 2024-09-20 21:12:29 |
Judging History
answer
#include<iostream>
#include<set>
#include<cstring>
using namespace std;
const int N=2e5+8;
int main()
{
cin.tie(0)->sync_with_stdio(false);
int t;cin>>t;
while(t--)
{
int n;cin>>n;
int res=0;
set<string>tm[30];
for(int i=1;i<=n;i++ )
{
string s;cin>>s;
char x;cin>>x;
string rt;cin>>rt;
if(rt=="accepted") tm[x-'A'].insert(s);
}
for(int i=1;i<=30;i++)
{
if(tm[i].size()>tm[res].size())res=i;
}
printf("%c\n",res+'A');
}
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 0
Wrong Answer
time: 1ms
memory: 3596kb
input:
2 5 teamA A accepted teamB B rejected teamC A accepted teamB B accepted teamD C accepted 4 teamA A rejected teamB A accepted teamC B accepted teamC B accepted
output:
_ _
result:
wrong answer 1st lines differ - expected: 'A', found: '_'