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