QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#279033 | #5436. DRX vs. T1 | Jalppatel1428 | WA | 0ms | 3772kb | C++14 | 316b | 2023-12-08 03:22:49 | 2023-12-08 03:22:49 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
int solve(){
string str;
cin>>str;
int cnt=0;
for(int i=0;i<str.size();i++){
cnt+=(str[i]=='T');
cnt-=(str[i]=='D');
}
if(cnt>0)cout<<"T1"<<endl;
else cout<<"RDX"<<endl;
}
int main(){
int tc;
cin>>tc;
while(tc--)solve();
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 0
Wrong Answer
time: 0ms
memory: 3772kb
input:
TDTT?
output:
result:
wrong answer 1st lines differ - expected: 'T1', found: ''