QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#77219#5436. DRX vs. T1zaxwellmenWA 2ms3448kbC++20369b2023-02-13 14:51:222023-02-13 14:51:26

Judging History

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

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-02-13 14:51:26]
  • 评测
  • 测评结果:WA
  • 用时:2ms
  • 内存:3448kb
  • [2023-02-13 14:51:22]
  • 提交

answer

#include<bits/stdc++.h>

using namespace std;

#define FOR(i,a,b) for (int i = (a); i < (b); ++i)
#define F0R(i,a) FOR(i,0,a)
#define mp make_pair
typedef pair<int, int> pi;

int main() {
    ios_base::sync_with_stdio(0); cin.tie(0);
    string s; cin >> s;
    s.pop_back();
    if (s.back()=='T') cout << "T1" << '\n';
    else cout << "DRX" << '\n';
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

TDTT?

output:

T1

result:

ok single line: 'T1'

Test #2:

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

input:

DTDD?

output:

DRX

result:

ok single line: 'DRX'

Test #3:

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

input:

DDD??

output:

DRX

result:

ok single line: 'DRX'

Test #4:

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

input:

DDTD?

output:

DRX

result:

ok single line: 'DRX'

Test #5:

score: -100
Wrong Answer
time: 0ms
memory: 3372kb

input:

DDTTD

output:

T1

result:

wrong answer 1st lines differ - expected: 'DRX', found: 'T1'