結果
| 問題 | No.5 数字のブロック |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-01-13 17:29:19 |
| 言語 | Python3 (3.15.2 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
RE
不安定
|
| 実行時間 | - |
| コード長 | 237 bytes |
| 記録 | |
| コンパイル時間 | 55 ms |
| コンパイル使用メモリ | 14,848 KB |
| 実行使用メモリ | 13,568 KB |
| 最終ジャッジ日時 | 2026-10-08 00:54:35 |
| 合計ジャッジ時間 | 2,946 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 16 RE * 18 |
ソースコード
L = input('Block size')
L = int(L)
N = -1
W = input().split(' ')
total = 0
while L > total:
min_math = min(W)
total = total + int(min_math)
W.remove(min(W))
N = N + 1
print(total)
if L == total:
N = N + 1
print(N)