結果
| 問題 | No.1628 Sorting Integers (MAX of M) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-12-04 15:01:35 |
| 言語 | Python3 (3.14.3 + numpy 2.4.2 + scipy 1.17.0) |
| 結果 |
AC
|
| 実行時間 | 95 ms / 2,000 ms |
| コード長 | 195 bytes |
| 記録 | |
| コンパイル時間 | 700 ms |
| コンパイル使用メモリ | 20,828 KB |
| 実行使用メモリ | 15,360 KB |
| 最終ジャッジ日時 | 2026-03-28 11:01:08 |
| 合計ジャッジ時間 | 2,029 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 6 |
ソースコード
N = int(input())
c = list(map(int,input().split()))
M = 0
i = 8
while N > 0:
if c[i] > 0:
M += (i+1) * (10 ** (N-1))
N -= 1
c[i] -= 1
else:
i -= 1
print(M)