QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#673855#5436. DRX vs. T1xcyyyyyWA 0ms3800kbC++20437b2024-10-25 11:06:072024-10-25 11:06:08

Judging History

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

  • [2024-10-25 11:06:08]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3800kb
  • [2024-10-25 11:06:07]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;
#define N 5005
#define fr first
#define se second
#define ls u<<1
#define rs u<<1|1
#define M 10000005
#define p 998244353
#define pb push_back
#define ll long long
#define inf 0x3f3f3f3f
#define pii pair<int,int>
int n,b[2];
char a[N];
int main(){
    scanf("%s",a+1);n=strlen(a+1);
    for(int i=1;i<n;i++)++b[a[i]=='D'?0:1];
    if(b[0]==3)puts("DRX");else puts("T1");
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

TDTT?

output:

T1

result:

ok single line: 'T1'

Test #2:

score: 0
Accepted
time: 0ms
memory: 3732kb

input:

DTDD?

output:

DRX

result:

ok single line: 'DRX'

Test #3:

score: 0
Accepted
time: 0ms
memory: 3732kb

input:

DDD??

output:

DRX

result:

ok single line: 'DRX'

Test #4:

score: 0
Accepted
time: 0ms
memory: 3600kb

input:

DDTD?

output:

DRX

result:

ok single line: 'DRX'

Test #5:

score: -100
Wrong Answer
time: 0ms
memory: 3752kb

input:

DDTTD

output:

T1

result:

wrong answer 1st lines differ - expected: 'DRX', found: 'T1'