QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#673855 | #5436. DRX vs. T1 | xcyyyyy | WA | 0ms | 3800kb | C++20 | 437b | 2024-10-25 11:06:07 | 2024-10-25 11:06:08 |
Judging History
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'