QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#74177#5436. DRX vs. T1chris_pherAC ✓3ms3476kbC++23518b2023-01-31 01:26:082023-01-31 01:26:09

Judging History

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

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-01-31 01:26:09]
  • 评测
  • 测评结果:AC
  • 用时:3ms
  • 内存:3476kb
  • [2023-01-31 01:26:08]
  • 提交

answer

#include <bits/stdc++.h>
typedef long long ll;
typedef std::pair<int,int> PII;
using namespace std;

 // T win output T1
 // D win output DRX
 // 五局三胜 
inline void solved()
{
	string s;
	cin >> s;
	map<char, int> cnt;
	for (int i = 0; i < s.size(); i++) cnt[s[i]]++;
	
	if (cnt['T'] > cnt['D']) puts("T1");
	else puts("DRX");
}

signed main()
{
	std::ios::sync_with_stdio(false);
	std::cin.tie(nullptr), cout.tie(nullptr);
	int T = 1;
	//cin >> T;
	while (T--) solved();
	return 0;
}

詳細信息

Test #1:

score: 100
Accepted
time: 1ms
memory: 3400kb

input:

TDTT?

output:

T1

result:

ok single line: 'T1'

Test #2:

score: 0
Accepted
time: 2ms
memory: 3392kb

input:

DTDD?

output:

DRX

result:

ok single line: 'DRX'

Test #3:

score: 0
Accepted
time: 1ms
memory: 3452kb

input:

DDD??

output:

DRX

result:

ok single line: 'DRX'

Test #4:

score: 0
Accepted
time: 2ms
memory: 3400kb

input:

DDTD?

output:

DRX

result:

ok single line: 'DRX'

Test #5:

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

input:

DDTTD

output:

DRX

result:

ok single line: 'DRX'

Test #6:

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

input:

DDTTT

output:

T1

result:

ok single line: 'T1'

Test #7:

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

input:

DTDTD

output:

DRX

result:

ok single line: 'DRX'

Test #8:

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

input:

DTDTT

output:

T1

result:

ok single line: 'T1'

Test #9:

score: 0
Accepted
time: 2ms
memory: 3388kb

input:

DTTDD

output:

DRX

result:

ok single line: 'DRX'

Test #10:

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

input:

DTTDT

output:

T1

result:

ok single line: 'T1'

Test #11:

score: 0
Accepted
time: 2ms
memory: 3360kb

input:

DTTT?

output:

T1

result:

ok single line: 'T1'

Test #12:

score: 0
Accepted
time: 2ms
memory: 3348kb

input:

TDDD?

output:

DRX

result:

ok single line: 'DRX'

Test #13:

score: 0
Accepted
time: 1ms
memory: 3452kb

input:

TDDTD

output:

DRX

result:

ok single line: 'DRX'

Test #14:

score: 0
Accepted
time: 2ms
memory: 3400kb

input:

TDDTT

output:

T1

result:

ok single line: 'T1'

Test #15:

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

input:

TDTDD

output:

DRX

result:

ok single line: 'DRX'

Test #16:

score: 0
Accepted
time: 2ms
memory: 3408kb

input:

TDTDT

output:

T1

result:

ok single line: 'T1'

Test #17:

score: 0
Accepted
time: 2ms
memory: 3476kb

input:

TTDDD

output:

DRX

result:

ok single line: 'DRX'

Test #18:

score: 0
Accepted
time: 3ms
memory: 3396kb

input:

TTDDT

output:

T1

result:

ok single line: 'T1'

Test #19:

score: 0
Accepted
time: 2ms
memory: 3284kb

input:

TTDT?

output:

T1

result:

ok single line: 'T1'

Test #20:

score: 0
Accepted
time: 2ms
memory: 3316kb

input:

TTT??

output:

T1

result:

ok single line: 'T1'