QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#279034#5436. DRX vs. T1Jalppatel1428RE 0ms0kbC++14320b2023-12-08 03:23:312023-12-08 03:23:31

Judging History

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

  • [2023-12-08 03:23:31]
  • 评测
  • 测评结果:RE
  • 用时:0ms
  • 内存:0kb
  • [2023-12-08 03:23:31]
  • 提交

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=1;
	//cin>>tc;
	while(tc--)solve();
	return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 0
Runtime Error

input:

TDTT?

output:

T1

result: