結果
| 問題 | No.5 数字のブロック |
| コンテスト | |
| ユーザー |
Ytz_Ichi
|
| 提出日時 | 2019-06-28 14:04:29 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 225 bytes |
| 記録 | |
| コンパイル時間 | 633 ms |
| コンパイル使用メモリ | 20,696 KB |
| 実行使用メモリ | 20,660 KB |
| 最終ジャッジ日時 | 2026-03-23 07:49:52 |
| 合計ジャッジ時間 | 5,964 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 27 RE * 7 |
ソースコード
import math
a = int(input())
b = int(input())
c = list(map(int, input().split()))
c.sort()
d = 0
i = 0
while True:
d += c[i]
if d > a:
break
elif d == a:
i += 1
break
i += 1
print(i)
Ytz_Ichi