結果
| 問題 |
No.8116 TCP ソート
|
| コンテスト | |
| ユーザー |
ゼリトキ
|
| 提出日時 | 2025-04-01 21:25:05 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 444 bytes |
| コンパイル時間 | 3,376 ms |
| コンパイル使用メモリ | 273,284 KB |
| 実行使用メモリ | 7,720 KB |
| 最終ジャッジ日時 | 2025-04-01 21:25:11 |
| 合計ジャッジ時間 | 4,179 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 WA * 16 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define ll long long
#define mod 998244353
int main(){
cin.tie(0)->sync_with_stdio(0);
cout.tie(0);
string S;
cin>>S;
int C=0,P=0,T=0;
rep(i,S.size()){
if(S.at(i)=='C') C++;
if(S.at(i)=='P') P++;
if(S.at(i)=='T') T++;
}
rep(i,T) cout<<"T";
rep(i,C) cout<<"C";
rep(i,P) cout<<"P";
}
ゼリトキ