結果
| 問題 |
No.5 数字のブロック
|
| ユーザー |
s10eng
|
| 提出日時 | 2018-12-06 17:21:51 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 266 bytes |
| コンパイル時間 | 407 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2024-09-14 02:34:44 |
| 合計ジャッジ時間 | 2,583 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge6 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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