結果
| 問題 | No.5 数字のブロック |
| コンテスト | |
| ユーザー |
s10eng
|
| 提出日時 | 2018-12-06 17:21:51 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 266 bytes |
| 記録 | |
| コンパイル時間 | 548 ms |
| コンパイル使用メモリ | 20,828 KB |
| 実行使用メモリ | 20,740 KB |
| 最終ジャッジ日時 | 2026-04-04 09:37:03 |
| 合計ジャッジ時間 | 10,496 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge5_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 34 |
ソースコード
max = int(input())
num = int(input())
a = [input() for i in range(max)]
a = a.sort()
total[0] = a[0]
for i in range(a):
total[i + 1] = total[i] + a[i + 1]
if max > total[0]:
print('0')
elif max == total[0]:
print('1')
elif max < total[i]:
print(i)
s10eng