結果
問題 |
No.8116 TCP ソート
|
ユーザー |
|
提出日時 | 2025-04-03 22:34:45 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 244 bytes |
コンパイル時間 | 2,402 ms |
コンパイル使用メモリ | 192,712 KB |
実行使用メモリ | 7,716 KB |
最終ジャッジ日時 | 2025-04-03 22:34:49 |
合計ジャッジ時間 | 3,581 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 27 |
ソースコード
#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'; }