結果
問題 |
No.8116 TCP ソート
|
ユーザー |
👑 ![]() |
提出日時 | 2024-10-01 03:03:28 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 269 bytes |
コンパイル時間 | 1,124 ms |
コンパイル使用メモリ | 98,704 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-01 03:03:31 |
合計ジャッジ時間 | 1,993 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 27 |
ソースコード
#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(); }); }