結果
問題 |
No.1868 Teleporting Cyanmond
|
ユーザー |
![]() |
提出日時 | 2022-05-12 13:20:00 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 221 bytes |
コンパイル時間 | 302 ms |
コンパイル使用メモリ | 82,444 KB |
実行使用メモリ | 90,904 KB |
最終ジャッジ日時 | 2024-07-20 06:39:36 |
合計ジャッジ時間 | 11,417 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 8 WA * 12 TLE * 1 -- * 4 |
ソースコード
N = int(input()) R = list(map(int, input().split())) start, end = 0, R[0]-1 dis = 1 while end < N-1: dis += 1 end2 = end for i in range(start+1, end+1): end2 = max(end2, R[i]) end = end2 print(dis)