QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#448909#5436. DRX vs. T1WTR2007WA 1ms3944kbC++14296b2024-06-20 11:43:162024-06-20 11:43:17

Judging History

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

  • [2024-06-20 11:43:17]
  • 评测
  • 测评结果:WA
  • 用时:1ms
  • 内存:3944kb
  • [2024-06-20 11:43:16]
  • 提交

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'