結果

問題 No.1868 Teleporting Cyanmond
ユーザー prussian_coderprussian_coder
提出日時 2022-03-19 14:02:07
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 67 ms / 2,000 ms
コード長 147 bytes
コンパイル時間 152 ms
コンパイル使用メモリ 82,380 KB
実行使用メモリ 79,936 KB
最終ジャッジ日時 2024-04-15 03:12:43
合計ジャッジ時間 3,370 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
53,672 KB
testcase_01 AC 38 ms
52,336 KB
testcase_02 AC 39 ms
52,824 KB
testcase_03 AC 53 ms
72,624 KB
testcase_04 AC 53 ms
68,280 KB
testcase_05 AC 43 ms
59,660 KB
testcase_06 AC 46 ms
61,712 KB
testcase_07 AC 50 ms
66,620 KB
testcase_08 AC 48 ms
62,620 KB
testcase_09 AC 48 ms
65,132 KB
testcase_10 AC 56 ms
71,264 KB
testcase_11 AC 45 ms
59,604 KB
testcase_12 AC 46 ms
62,492 KB
testcase_13 AC 52 ms
67,096 KB
testcase_14 AC 60 ms
74,768 KB
testcase_15 AC 55 ms
70,108 KB
testcase_16 AC 47 ms
62,996 KB
testcase_17 AC 48 ms
64,032 KB
testcase_18 AC 62 ms
77,264 KB
testcase_19 AC 61 ms
76,428 KB
testcase_20 AC 63 ms
77,220 KB
testcase_21 AC 63 ms
76,304 KB
testcase_22 AC 61 ms
76,552 KB
testcase_23 AC 63 ms
78,252 KB
testcase_24 AC 66 ms
77,660 KB
testcase_25 AC 64 ms
77,596 KB
testcase_26 AC 66 ms
78,628 KB
testcase_27 AC 67 ms
79,936 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
A=[int(x) for x in input().split()]
a=0
x=0
y=1
u=0
while u<N:
	u=y
	for i in range(x,y):
		u=max(u,A[i])
	x=y
	y=u
	a+=1
print(a)
	
0