結果
| 問題 | No.5 数字のブロック |
| コンテスト | |
| ユーザー |
ytft
|
| 提出日時 | 2022-11-02 14:31:00 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 72 ms / 5,000 ms |
| + 630µs | |
| コード長 | 202 bytes |
| 記録 | |
| コンパイル時間 | 230 ms |
| コンパイル使用メモリ | 96,108 KB |
| 実行使用メモリ | 83,412 KB |
| 最終ジャッジ日時 | 2026-08-15 02:05:21 |
| 合計ジャッジ時間 | 5,060 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 34 |
ソースコード
import sys,copy input=lambda:sys.stdin.readline().rstrip() W=int(input()) N=int(input()) A=sorted(list(map(int,input().split()))) for i in range(N): if A[i]>W: print(i) sys.exit() W-=A[i] print(N)
ytft