結果
問題 | No.5 数字のブロック |
ユーザー |
![]() |
提出日時 | 2019-11-25 19:48:12 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 228 bytes |
コンパイル時間 | 119 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 11,648 KB |
最終ジャッジ日時 | 2024-10-13 14:58:35 |
合計ジャッジ時間 | 2,116 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 34 |
ソースコード
L = int(input()) N = int(input()) W = input().split() W.sort(key=int) print(L) print(N) print(W) l=0 c=0 for i in range(N): l += int(W[i]) if l > L: break c = i + 1 print(l) print(c) print(c)