結果
| 問題 |
No.3220 Forest Creation
|
| ユーザー |
|
| 提出日時 | 2025-08-01 22:42:04 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 171 bytes |
| コンパイル時間 | 354 ms |
| コンパイル使用メモリ | 82,348 KB |
| 実行使用メモリ | 82,676 KB |
| 最終ジャッジ日時 | 2025-08-01 22:42:09 |
| 合計ジャッジ時間 | 4,832 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 1 |
| other | AC * 35 WA * 10 |
ソースコード
n=int(input())
L=list(map(int,input().split()))
flag=1
cnt=sum(L[1:2])
for i in range(2,n):
if cnt<L[i]:
flag=0
break
cnt+=L[i]
print("Yes" if flag else "No")