結果

問題 No.1868 Teleporting Cyanmond
ユーザー tassei903tassei903
提出日時 2022-03-11 21:28:44
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 498 bytes
コンパイル時間 327 ms
コンパイル使用メモリ 87,016 KB
実行使用メモリ 94,968 KB
最終ジャッジ日時 2023-10-14 06:15:57
合計ジャッジ時間 6,125 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
75,504 KB
testcase_01 AC 78 ms
71,524 KB
testcase_02 AC 80 ms
71,184 KB
testcase_03 AC 94 ms
87,876 KB
testcase_04 AC 91 ms
84,008 KB
testcase_05 AC 81 ms
76,260 KB
testcase_06 AC 85 ms
76,104 KB
testcase_07 AC 90 ms
80,664 KB
testcase_08 AC 82 ms
78,120 KB
testcase_09 AC 87 ms
79,928 KB
testcase_10 AC 99 ms
86,692 KB
testcase_11 AC 77 ms
75,972 KB
testcase_12 AC 85 ms
77,276 KB
testcase_13 AC 98 ms
81,020 KB
testcase_14 AC 98 ms
88,428 KB
testcase_15 AC 90 ms
84,100 KB
testcase_16 AC 88 ms
76,340 KB
testcase_17 AC 86 ms
76,676 KB
testcase_18 TLE -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = lambda :sys.stdin.readline()[:-1]
ni = lambda :int(input())
na = lambda :list(map(int,input().split()))
yes = lambda :print("yes");Yes = lambda :print("Yes");YES = lambda : print("YES")
no = lambda :print("no");No = lambda :print("No");NO = lambda : print("NO")

#######################################################################

N = ni()
R = na()
i = 0
z = R[0]
ans = 1
while z < N:
    ans += 1
    k,i = i,z
    for j in range(k+1,i):
        z = max(z,R[j])
print(ans)
0