結果
| 問題 |
No.8116 TCP ソート
|
| コンテスト | |
| ユーザー |
toku4388
|
| 提出日時 | 2025-04-01 21:26:37 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 297 bytes |
| コンパイル時間 | 3,584 ms |
| コンパイル使用メモリ | 280,388 KB |
| 実行使用メモリ | 7,716 KB |
| 最終ジャッジ日時 | 2025-04-01 21:26:42 |
| 合計ジャッジ時間 | 4,094 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 WA * 16 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
map<char, int> cnt;
for (char c : s) {
cnt[c]++;
}
string t = "TCP";
string ans;
for (int i = 0; i < 3; i++) {
for (int j = 0; j < cnt[t[i]]; j++) {
ans += t[i];
}
}
cout << ans << endl;
return 0;
}
toku4388