結果
| 問題 | No.1868 Teleporting Cyanmond |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-03-11 21:41:40 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 212 bytes |
| 記録 | |
| コンパイル時間 | 255 ms |
| コンパイル使用メモリ | 96,236 KB |
| 実行使用メモリ | 99,328 KB |
| 最終ジャッジ日時 | 2026-08-28 09:41:56 |
| 合計ジャッジ時間 | 4,542 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | WA * 25 |
ソースコード
n = int(input())
R = [0]+list(map(int,input().split()))+[n]
ans = 0
now = 1
while now < n:
m = 0
nex = R[now]
for i in range(now,nex+1):
m = max(m,R[i])
ans += 1
now = nex
print(ans)