結果

問題 No.1868 Teleporting Cyanmond
ユーザー n_nan_na
提出日時 2022-03-11 22:59:38
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 107 ms / 2,000 ms
コード長 157 bytes
コンパイル時間 380 ms
コンパイル使用メモリ 87,024 KB
実行使用メモリ 90,724 KB
最終ジャッジ日時 2023-10-14 08:13:48
合計ジャッジ時間 4,037 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 64 ms
71,372 KB
testcase_01 AC 63 ms
71,372 KB
testcase_02 AC 65 ms
71,116 KB
testcase_03 AC 107 ms
88,304 KB
testcase_04 AC 75 ms
83,992 KB
testcase_05 AC 66 ms
75,988 KB
testcase_06 AC 69 ms
75,904 KB
testcase_07 AC 72 ms
80,736 KB
testcase_08 AC 68 ms
77,880 KB
testcase_09 AC 70 ms
79,940 KB
testcase_10 AC 80 ms
86,844 KB
testcase_11 AC 70 ms
76,020 KB
testcase_12 AC 71 ms
76,980 KB
testcase_13 AC 79 ms
80,636 KB
testcase_14 AC 87 ms
87,988 KB
testcase_15 AC 81 ms
83,800 KB
testcase_16 AC 70 ms
75,980 KB
testcase_17 AC 73 ms
76,404 KB
testcase_18 AC 90 ms
90,652 KB
testcase_19 AC 91 ms
90,400 KB
testcase_20 AC 93 ms
90,644 KB
testcase_21 AC 92 ms
90,648 KB
testcase_22 AC 88 ms
90,504 KB
testcase_23 AC 92 ms
90,524 KB
testcase_24 AC 93 ms
90,624 KB
testcase_25 AC 94 ms
90,400 KB
testcase_26 AC 93 ms
90,556 KB
testcase_27 AC 93 ms
90,724 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
R = list(map(int, input().split()))

l,r = 0,1
cnt = 0
while r < N:
    tmp = r
    r = max(R[l:r])
    l = tmp
    cnt += 1
print(cnt)
    
0