結果
問題 |
No.8116 TCP ソート
|
ユーザー |
|
提出日時 | 2025-04-01 21:25:56 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 261 bytes |
コンパイル時間 | 178 ms |
コンパイル使用メモリ | 82,668 KB |
実行使用メモリ | 53,920 KB |
最終ジャッジ日時 | 2025-04-01 21:25:58 |
合計ジャッジ時間 | 2,238 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 WA * 16 |
ソースコード
S=input() l=[] m=[] for i in S: if ord(i)>ord("T") and i not in "CTP": l.append(i) for i in S: if ord(i)<ord("T") and i not in "CTP": m.append(i) l="".join(sorted(l)) m="".join(sorted(m)) print(m+"T"*(S.count("T"))+"C"*(S.count("C"))+"P"*(S.count("P"))+l)