結果
| 問題 |
No.8116 TCP ソート
|
| ユーザー |
|
| 提出日時 | 2025-04-03 22:38:19 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 245 bytes |
| コンパイル時間 | 2,161 ms |
| コンパイル使用メモリ | 193,944 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2025-04-03 22:38:22 |
| 合計ジャッジ時間 | 3,584 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 WA * 16 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
int main(){
int t=0,c=0,p=0;
string s;cin>>s;
for(auto& i:s){
if(i=='T')t++;
if(i=='C')c++;
if(i=='P')p++;
}
while(t--)cout<<"T";
while(c--)cout<<"C";
while(p--)cout<<"P";
cout<<'\n';
}