結果
問題 |
No.2836 Comment Out
|
ユーザー |
![]() |
提出日時 | 2024-08-09 22:21:47 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 342 bytes |
コンパイル時間 | 260 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 33,020 KB |
最終ジャッジ日時 | 2024-08-09 22:21:59 |
合計ジャッジ時間 | 10,027 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 WA * 1 |
other | AC * 26 WA * 26 |
ソースコード
import sys input = sys.stdin.readline N=int(input()) A=list(map(int,input().split())) LIST=[0]*(N+5) for i in range(N): x=N-A[i] if 0<=i-x<N: LIST[max(i-x,0)]+=1 if i+x+1>=0: LIST[min(i+x+1,N+4)]-=1 for i in range(1,len(LIST)): LIST[i]+=LIST[i-1] if max(LIST)==N: print("Yes") else: print("No")