QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#448909 | #5436. DRX vs. T1 | WTR2007 | WA | 1ms | 3944kb | C++14 | 296b | 2024-06-20 11:43:16 | 2024-06-20 11:43:17 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
signed main() {
string a;
cin >> a;
int A = 0, B = 0;
for (int i = 0; i < 4; i++) {
if (a[i] == 'T') A++;
if (a[i] == 'D') B++;
}
if (A > B) printf("T1\n");
else printf("DRX\n");
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 1ms
memory: 3580kb
input:
TDTT?
output:
T1
result:
ok single line: 'T1'
Test #2:
score: 0
Accepted
time: 0ms
memory: 3944kb
input:
DTDD?
output:
DRX
result:
ok single line: 'DRX'
Test #3:
score: 0
Accepted
time: 0ms
memory: 3588kb
input:
DDD??
output:
DRX
result:
ok single line: 'DRX'
Test #4:
score: 0
Accepted
time: 0ms
memory: 3944kb
input:
DDTD?
output:
DRX
result:
ok single line: 'DRX'
Test #5:
score: 0
Accepted
time: 0ms
memory: 3652kb
input:
DDTTD
output:
DRX
result:
ok single line: 'DRX'
Test #6:
score: -100
Wrong Answer
time: 0ms
memory: 3568kb
input:
DDTTT
output:
DRX
result:
wrong answer 1st lines differ - expected: 'T1', found: 'DRX'