結果

問題 No.1868 Teleporting Cyanmond
ユーザー AEnAEn
提出日時 2022-05-12 13:20:00
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 221 bytes
コンパイル時間 1,812 ms
コンパイル使用メモリ 86,664 KB
実行使用メモリ 90,480 KB
最終ジャッジ日時 2023-09-27 12:32:19
合計ジャッジ時間 12,572 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 64 ms
70,992 KB
testcase_02 AC 65 ms
71,412 KB
testcase_03 AC 90 ms
88,120 KB
testcase_04 AC 81 ms
83,988 KB
testcase_05 AC 72 ms
76,196 KB
testcase_06 WA -
testcase_07 AC 75 ms
80,640 KB
testcase_08 AC 70 ms
78,316 KB
testcase_09 AC 76 ms
80,016 KB
testcase_10 AC 82 ms
86,540 KB
testcase_11 AC 68 ms
76,284 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 TLE -
testcase_24 TLE -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

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)
0