結果
問題 |
No.8116 TCP ソート
|
ユーザー |
|
提出日時 | 2025-04-02 00:06:21 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 202 bytes |
コンパイル時間 | 332 ms |
コンパイル使用メモリ | 82,448 KB |
実行使用メモリ | 67,368 KB |
最終ジャッジ日時 | 2025-04-02 00:06:24 |
合計ジャッジ時間 | 2,781 ms |
ジャッジサーバーID (参考情報) |
judge6 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 18 RE * 9 |
ソースコード
def f(c): if c == "T": return 0 if c == "C": return 1 if c == "P": return 2 s = input() if "C" not in s: print("P"*s.count("P")+"T"*s.count("T")) else: print(*sorted(input(),key=f),sep="")