結果
問題 | No.256 桁の数字を入れ替え (2) |
ユーザー | 👑 rin204 |
提出日時 | 2023-06-30 22:49:44 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 108 ms / 2,000 ms |
コード長 | 166 bytes |
コンパイル時間 | 955 ms |
コンパイル使用メモリ | 87,060 KB |
実行使用メモリ | 86,948 KB |
最終ジャッジ日時 | 2023-09-21 17:03:14 |
合計ジャッジ時間 | 1,966 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 74 ms
71,124 KB |
testcase_01 | AC | 73 ms
71,344 KB |
testcase_02 | AC | 107 ms
86,900 KB |
testcase_03 | AC | 108 ms
86,948 KB |
ソースコード
n = input() lst = [0 for _ in range(10)] for num in n: lst[int(num)] += 1 ans = "" for i, num in enumerate(lst): ans += str(i) * num print(*ans[::-1], sep="")