QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#576688#9320. Find the Easiest ProblemkramQAQWA 5ms3808kbC++14665b2024-09-19 21:35:162024-09-19 21:35:16

Judging History

你现在查看的是最新测评结果

  • [2024-09-19 21:35:16]
  • 评测
  • 测评结果:WA
  • 用时:5ms
  • 内存:3808kb
  • [2024-09-19 21:35:16]
  • 提交

answer

#include <bits/stdc++.h>
#define endl '\n'
#define int long long
using namespace std;
 
#include <bits/stdc++.h>
#define endl '\n'
#define int long long
using namespace std;
 
void solve()
{
	int n;
	cin >> n;
	int ans = 0;
	string s1,s2;
	char x;
	set<char> st[27];
	while(n--){
		cin >> s1;
		cin >> x;
		cin >> s2;
		if (s2 == "accepted") st[x-'A'].insert(s1[5]);
	}
	for (int i = 0; i <= 'Z'-'A'; ++i){
		if (st[i].size() > st[ans].size()) ans = i;
	}
	cout << char('A'+ans) << endl;
}
 
 
signed main()
{
	ios::sync_with_stdio(0);
	cin.tie(0);
	cout.tie(0);
	int t=1;
	cin>>t;
	while(t--){
	solve();
	}
	return 0;
 }

詳細信息

Test #1:

score: 100
Accepted
time: 0ms
memory: 3808kb

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:

A
A

result:

ok 2 lines

Test #2:

score: -100
Wrong Answer
time: 5ms
memory: 3612kb

input:

1000
44
WaiooyIXa O accepted
WaiooyIXa P accepted
ZYYsNWag P accepted
DPIawQg D rejected
IzPdjnM Z rejected
Ra D rejected
kwQyGxLo I rejected
DPIawQg L accepted
kwQyGxLo I accepted
mmWxDuADCB D rejected
PXwVAOgwiz P rejected
ZYYsNWag U accepted
IzPdjnM Z accepted
TgBNO P rejected
kwQyGxLo J accepted...

output:

Z
E
Z
O
B
I
G
H
T
K
J
I
H
R
Z
C
K
O
I
P
A
B
I
A
A
N
A
B
A
O
F
O
R
T
H
G
K
E
S
D
F
D
O
C
U
V
W
P
A
O
J
E
A
B
U
M
C
T
B
Y
V
A
O
N
E
O
H
F
B
G
J
I
E
M
A
A
E
A
K
W
J
P
E
W
Z
K
F
I
S
P
M
H
G
G
H
W
I
P
T
D
O
A
F
N
C
L
Y
Z
S
G
J
F
Q
F
O
C
B
B
U
C
I
A
E
I
P
K
C
R
X
N
D
N
L
Q
L
I
X
I
H
U
J
Z
D
K
G
F
T
F
B
H
...

result:

wrong answer 4th lines differ - expected: 'I', found: 'O'