QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#102402#5436. DRX vs. T1retcarizy#AC ✓2ms3696kbC++14273b2023-05-03 12:47:112023-05-03 12:47:13

Judging History

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

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-05-03 12:47:13]
  • 评测
  • 测评结果:AC
  • 用时:2ms
  • 内存:3696kb
  • [2023-05-03 12:47:11]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;
char s[10];
int main(){
	scanf("%s", s);
	int t = 0, d = 0;
	for (int i = 0; i < 5; i++)
		if (s[i] == 'T')	
			t++;
		else
		if (s[i] == 'D')
			d++;
	if (t == 3)
		puts("T1");
	else
		puts("DRX");
	return 0;
}

详细

Test #1:

score: 100
Accepted
time: 2ms
memory: 3640kb

input:

TDTT?

output:

T1

result:

ok single line: 'T1'

Test #2:

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

input:

DTDD?

output:

DRX

result:

ok single line: 'DRX'

Test #3:

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

input:

DDD??

output:

DRX

result:

ok single line: 'DRX'

Test #4:

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

input:

DDTD?

output:

DRX

result:

ok single line: 'DRX'

Test #5:

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

input:

DDTTD

output:

DRX

result:

ok single line: 'DRX'

Test #6:

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

input:

DDTTT

output:

T1

result:

ok single line: 'T1'

Test #7:

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

input:

DTDTD

output:

DRX

result:

ok single line: 'DRX'

Test #8:

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

input:

DTDTT

output:

T1

result:

ok single line: 'T1'

Test #9:

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

input:

DTTDD

output:

DRX

result:

ok single line: 'DRX'

Test #10:

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

input:

DTTDT

output:

T1

result:

ok single line: 'T1'

Test #11:

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

input:

DTTT?

output:

T1

result:

ok single line: 'T1'

Test #12:

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

input:

TDDD?

output:

DRX

result:

ok single line: 'DRX'

Test #13:

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

input:

TDDTD

output:

DRX

result:

ok single line: 'DRX'

Test #14:

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

input:

TDDTT

output:

T1

result:

ok single line: 'T1'

Test #15:

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

input:

TDTDD

output:

DRX

result:

ok single line: 'DRX'

Test #16:

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

input:

TDTDT

output:

T1

result:

ok single line: 'T1'

Test #17:

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

input:

TTDDD

output:

DRX

result:

ok single line: 'DRX'

Test #18:

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

input:

TTDDT

output:

T1

result:

ok single line: 'T1'

Test #19:

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

input:

TTDT?

output:

T1

result:

ok single line: 'T1'

Test #20:

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

input:

TTT??

output:

T1

result:

ok single line: 'T1'