結果
問題 |
No.5 数字のブロック
|
ユーザー |
|
提出日時 | 2019-01-13 17:29:19 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 237 bytes |
コンパイル時間 | 101 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-12-26 00:28:36 |
合計ジャッジ時間 | 2,593 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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)