結果
問題 |
No.8116 TCP ソート
|
ユーザー |
|
提出日時 | 2025-04-01 21:25:06 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 261 bytes |
コンパイル時間 | 164 ms |
コンパイル使用メモリ | 82,220 KB |
実行使用メモリ | 54,008 KB |
最終ジャッジ日時 | 2025-04-01 21:25:13 |
合計ジャッジ時間 | 1,808 ms |
ジャッジサーバーID (参考情報) |
judge6 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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(l+"T"*(S.count("T"))+"C"*(S.count("C"))+"P"*(S.count("P"))+m)