結果
問題 |
No.5 数字のブロック
|
ユーザー |
![]() |
提出日時 | 2024-12-05 21:03:46 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 151 bytes |
コンパイル時間 | 381 ms |
コンパイル使用メモリ | 82,432 KB |
実行使用メモリ | 59,648 KB |
最終ジャッジ日時 | 2024-12-05 21:03:50 |
合計ジャッジ時間 | 3,186 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 WA * 22 |
ソースコード
l = int(input()) n = int(input()) a = list(map(int,input().split())) tot = 0 for i in range(n): tot += a[i] if tot > l: print(i) exit() print(n)