結果
問題 | No.8116 TCP ソート |
ユーザー |
|
提出日時 | 2025-04-02 11:18:37 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 306 bytes |
コンパイル時間 | 3,683 ms |
コンパイル使用メモリ | 283,552 KB |
実行使用メモリ | 7,848 KB |
最終ジャッジ日時 | 2025-04-02 11:18:42 |
合計ジャッジ時間 | 5,004 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 WA * 16 |
ソースコード
#include<bits/stdc++.h>using namespace std;#define int long longsigned main(){string s;cin>>s;map<char,int>cnt;int n=s.size();for(char w:s)cnt[w]++;string ans="";ans+=string(cnt['T'],'T');ans+=string(cnt['C'],'C');ans+=string(cnt['P'],'P');cout<<ans<<endl;}