結果
| 問題 | No.8116 TCP ソート | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2025-04-02 00:51:53 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 44 ms / 2,000 ms | 
| コード長 | 168 bytes | 
| コンパイル時間 | 490 ms | 
| コンパイル使用メモリ | 81,988 KB | 
| 実行使用メモリ | 55,196 KB | 
| 最終ジャッジ日時 | 2025-04-02 00:51:57 | 
| 合計ジャッジ時間 | 2,915 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 27 | 
ソースコード
from collections import Counter
tcp="TCP"
s=input()
if "C" not in s:
    print("".join(sorted(s)))
    exit()
sc = Counter(s)
for ch in tcp:
    print(ch*sc[ch],end="")
            
            
            
        