QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#565398#9320. Find the Easiest Problemgreen__handWA 5ms3916kbC++20924b2024-09-15 21:11:202024-09-15 21:11:20

Judging History

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

  • [2024-09-15 21:11:20]
  • 评测
  • 测评结果:WA
  • 用时:5ms
  • 内存:3916kb
  • [2024-09-15 21:11:20]
  • 提交

answer

#include <bits/stdc++.h>

#define int long long
using namespace std;
typedef long long i64;
typedef pair<int, int> PII;

const int N = 2e5 + 10, p = 998244353;

int lowbit(int x) { return x & (-x); }

int fac26[N];

int qmi(int a, int b, int p) {
    int res = 1;
    while (b) {
        if (b & 1) res = res * a % p;
        a = a * a % p;
        b >>= 1;
    }
    return res;
}

int x[N], w[N], s[N];

void solve() {
    int n; cin >> n;
//    map<string, bool> mp;
    vector<string> a(n), b(n), c(n);
    for (int i = 0; i < n; i++) {
        cin >> a[i] >> b[i] >> c[i];
    }
    for (int i = 0; i < n; i++) {
        if (c[i] == "accepted") {
            cout << b[i] << '\n';
            break;
        }
    }
}

signed main() {
    ios::sync_with_stdio(false), cin.tie(nullptr);
    int T = 1;
    cin >> T;
    while (T--) {
        solve();
    }
    return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

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: 3916kb

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:

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

result:

wrong answer 1st lines differ - expected: 'Z', found: 'O'