結果
| 問題 |
No.5 数字のブロック
|
| ユーザー |
sirasu
|
| 提出日時 | 2025-03-03 23:07:39 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 42 ms / 5,000 ms |
| コード長 | 165 bytes |
| コンパイル時間 | 494 ms |
| コンパイル使用メモリ | 82,140 KB |
| 実行使用メモリ | 61,904 KB |
| 最終ジャッジ日時 | 2025-03-03 23:07:43 |
| 合計ジャッジ時間 | 2,860 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 34 |
ソースコード
a=int(input())
b=input()
c=list(map(int,input().split()))
c.sort()
count=0
for i in range(len(c)):
a-=c[i]
count+=1
if a<0:
count-=1
break
print(count)
sirasu