QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#266939#5436. DRX vs. T1ucup-team1344RE 0ms0kbC++20731b2023-11-26 20:05:432023-11-26 20:05:43

Judging History

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

  • [2023-11-26 20:05:43]
  • 评测
  • 测评结果:RE
  • 用时:0ms
  • 内存:0kb
  • [2023-11-26 20:05:43]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;
using i128=__int128_t;
#define inf 0x3f3f3f3f
#define quick std::ios::sync_with_stdio(false);std::cin.tie(nullptr);std::cout.tie(nullptr);
typedef long long ll;
typedef pair<ll,ll> PII;
typedef unsigned long long ull;

#define N 1000010
#define M 998244353
// 998244353 1000000007 1073741824
// 无序map unordered_map

int a,b,c;
string s;

void solve(){
    cin>>s;
    for(auto it:s){
        if(it=='D')a++;
        else if(it=='T')b++;
        else c++;
    }

    if(a>b)cout<<"DRX"<<endl;
    else cout<<"T1"<<endl;
}

int main(){ quick
    int t=1;
    // cin>>t;
    while(t--){
        solve();
    }

	
	system("pause");
    return 0;
}

详细

Test #1:

score: 0
Dangerous Syscalls

input:

TDTT?

output:

T1

result: