結果
問題 | No.256 桁の数字を入れ替え (2) |
ユーザー | konabe |
提出日時 | 2018-07-23 14:53:26 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
AC
|
実行時間 | 46 ms / 2,000 ms |
コード長 | 180 bytes |
コンパイル時間 | 81 ms |
コンパイル使用メモリ | 10,636 KB |
実行使用メモリ | 8,464 KB |
最終ジャッジ日時 | 2023-08-27 14:33:54 |
合計ジャッジ時間 | 797 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 17 ms
7,828 KB |
testcase_01 | AC | 16 ms
7,912 KB |
testcase_02 | AC | 46 ms
8,464 KB |
testcase_03 | AC | 46 ms
8,432 KB |
ソースコード
Ns = input() cnt = [0 for i in range(10)] for Nd in Ns: cnt[int(Nd)] += 1 res = "" for i in reversed(range(10)): if cnt[i] != 0: res += str(i) * cnt[i] print(res)