結果
| 問題 | No.8116 TCP ソート |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-04-02 00:06:21 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 202 bytes |
| 記録 | |
| コンパイル時間 | 243 ms |
| コンパイル使用メモリ | 95,944 KB |
| 実行使用メモリ | 91,004 KB |
| 最終ジャッジ日時 | 2026-07-08 07:37:57 |
| 合計ジャッジ時間 | 4,181 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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="")