結果
| 問題 |
No.8116 TCP ソート
|
| コンテスト | |
| ユーザー |
detteiuu
|
| 提出日時 | 2025-07-13 23:37:42 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 48 ms / 2,000 ms |
| コード長 | 138 bytes |
| コンパイル時間 | 223 ms |
| コンパイル使用メモリ | 82,244 KB |
| 実行使用メモリ | 53,820 KB |
| 最終ジャッジ日時 | 2025-07-13 23:37:45 |
| 合計ジャッジ時間 | 2,360 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 27 |
ソースコード
S = input()
if "C" in S:
print("T"*S.count("T")+"C"*S.count("C")+"P"*S.count("P"))
else:
print("P"*S.count("P")+"T"*S.count("T"))
detteiuu