結果
| 問題 | No.5 数字のブロック |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-03-07 18:49:27 |
| 言語 | Python3 (3.14.3 + numpy 2.4.2 + scipy 1.17.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 318 bytes |
| 記録 | |
| コンパイル時間 | 379 ms |
| コンパイル使用メモリ | 20,824 KB |
| 実行使用メモリ | 21,208 KB |
| 最終ジャッジ日時 | 2026-03-08 18:57:49 |
| 合計ジャッジ時間 | 8,856 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 34 |
ソースコード
a = input()
b = input()
c = input().split()
d = []
for i in range(len(c)):
d[i] = int(c[i])
d.sort()
sums = 0
count = 0
for i in d:
sums += i
if sums < int(a):
count += 1
continue
elif sums == int(a):
count += 1
break
elif sums > inta(a):
break
print(count)