結果
問題 |
No.8116 TCP ソート
|
ユーザー |
👑 ![]() |
提出日時 | 2024-10-01 03:03:52 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 299 bytes |
コンパイル時間 | 1,131 ms |
コンパイル使用メモリ | 98,940 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-01 03:03:54 |
合計ジャッジ時間 | 1,998 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 WA * 16 |
ソースコード
#include <algorithm> #include <iostream> #include <string> #include <utility> int main() { std::string S; std::cin >> S; std::ranges::sort(S, {}, [](char c) { if (c == 'T') return 0; if (c == 'C') return 1; if (c == 'P') return 2; std::unreachable(); }); std::cout << S << std::endl; }