結果
| 問題 | No.5 数字のブロック |
| ユーザー |
|
| 提出日時 | 2026-11-11 18:35:58 |
| 言語 | Python3 (3.15.2 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
RE
不安定
|
| 実行時間 | - |
| コード長 | 283 bytes |
| 記録 | |
| コンパイル時間 | 65 ms |
| コンパイル使用メモリ | 14,720 KB |
| 実行使用メモリ | 15,488 KB |
| 最終ジャッジ日時 | 2026-11-11 18:36:04 |
| 合計ジャッジ時間 | 4,435 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 34 |
ソースコード
l = input()
n = input()
w = input().split()
a = int(0)
w.sort(key=int, reverse=False)
if int(l) < w.index(0):
print("0")
for i in w:
a = a + int(i)
if a == int(l):
print(w.index(i)+1)
exit()
elif a > int(l):
print(w.index(i))
exit()