QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#95785#5436. DRX vs. T1reshke#AC ✓4ms5952kbC++141.1kb2023-04-11 21:49:002023-04-11 21:49:01

Judging History

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

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-04-11 21:49:01]
  • 评测
  • 测评结果:AC
  • 用时:4ms
  • 内存:5952kb
  • [2023-04-11 21:49:00]
  • 提交

answer

#pragma comment(linker, "/STACK:16777216")
#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <queue>
#include <algorithm>
#include <map>
#include <vector>
#include <set>
#include <unordered_set>
#include <cstring>
#include <unordered_map>
#include "math.h"
#include <stdio.h>
#include <bitset>
#include <string>
#include <complex>
#include <iomanip>
#include <stack>
#include <deque>
#include <string>
#include<assert.h>
typedef long long ll;

using namespace std;
const ll MOD = 998244353;
const ll MAXN = 100005;
const double pi = acos(-1);

vector<int> g[100005];
int cnt[100005];

void solve() {
    string s;
    cin >> s;
    int cnt1 = 0;
    for (int i = 0; i < s.length(); i++) {
        if (s[i] == 'T')
            cnt1++;
    }
    if (cnt1 >= 3) {
        cout << "T1";
    } else {
        cout << "DRX";
    }
}


int main()
{
    std::ios_base::sync_with_stdio(0);
    std::cin.tie(0);
    std::cout.tie(0);
    cout.precision(20);
    //precalc();
    //freopen("../in.txt", "r", stdin);
    //freopen("../out.txt", "w", stdout);
    solve();
    return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 3ms
memory: 5788kb

input:

TDTT?

output:

T1

result:

ok single line: 'T1'

Test #2:

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

input:

DTDD?

output:

DRX

result:

ok single line: 'DRX'

Test #3:

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

input:

DDD??

output:

DRX

result:

ok single line: 'DRX'

Test #4:

score: 0
Accepted
time: 4ms
memory: 5832kb

input:

DDTD?

output:

DRX

result:

ok single line: 'DRX'

Test #5:

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

input:

DDTTD

output:

DRX

result:

ok single line: 'DRX'

Test #6:

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

input:

DDTTT

output:

T1

result:

ok single line: 'T1'

Test #7:

score: 0
Accepted
time: 4ms
memory: 5800kb

input:

DTDTD

output:

DRX

result:

ok single line: 'DRX'

Test #8:

score: 0
Accepted
time: 4ms
memory: 5752kb

input:

DTDTT

output:

T1

result:

ok single line: 'T1'

Test #9:

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

input:

DTTDD

output:

DRX

result:

ok single line: 'DRX'

Test #10:

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

input:

DTTDT

output:

T1

result:

ok single line: 'T1'

Test #11:

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

input:

DTTT?

output:

T1

result:

ok single line: 'T1'

Test #12:

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

input:

TDDD?

output:

DRX

result:

ok single line: 'DRX'

Test #13:

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

input:

TDDTD

output:

DRX

result:

ok single line: 'DRX'

Test #14:

score: 0
Accepted
time: 4ms
memory: 5744kb

input:

TDDTT

output:

T1

result:

ok single line: 'T1'

Test #15:

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

input:

TDTDD

output:

DRX

result:

ok single line: 'DRX'

Test #16:

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

input:

TDTDT

output:

T1

result:

ok single line: 'T1'

Test #17:

score: 0
Accepted
time: 4ms
memory: 5796kb

input:

TTDDD

output:

DRX

result:

ok single line: 'DRX'

Test #18:

score: 0
Accepted
time: 4ms
memory: 5816kb

input:

TTDDT

output:

T1

result:

ok single line: 'T1'

Test #19:

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

input:

TTDT?

output:

T1

result:

ok single line: 'T1'

Test #20:

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

input:

TTT??

output:

T1

result:

ok single line: 'T1'