結果

問題 No.1868 Teleporting Cyanmond
ユーザー nariyelnariyel
提出日時 2022-03-12 06:09:26
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 104 ms / 2,000 ms
コード長 232 bytes
コンパイル時間 848 ms
コンパイル使用メモリ 10,500 KB
実行使用メモリ 19,604 KB
最終ジャッジ日時 2023-10-14 17:20:40
合計ジャッジ時間 4,906 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,828 KB
testcase_01 AC 16 ms
7,816 KB
testcase_02 AC 15 ms
7,792 KB
testcase_03 AC 48 ms
17,300 KB
testcase_04 AC 42 ms
14,956 KB
testcase_05 AC 18 ms
8,608 KB
testcase_06 AC 23 ms
9,664 KB
testcase_07 AC 31 ms
12,928 KB
testcase_08 AC 25 ms
10,724 KB
testcase_09 AC 30 ms
12,076 KB
testcase_10 AC 51 ms
16,784 KB
testcase_11 AC 17 ms
8,228 KB
testcase_12 AC 25 ms
10,308 KB
testcase_13 AC 35 ms
13,264 KB
testcase_14 AC 57 ms
18,736 KB
testcase_15 AC 42 ms
14,868 KB
testcase_16 AC 20 ms
9,256 KB
testcase_17 AC 24 ms
10,084 KB
testcase_18 AC 74 ms
19,420 KB
testcase_19 AC 75 ms
19,536 KB
testcase_20 AC 73 ms
19,600 KB
testcase_21 AC 74 ms
19,492 KB
testcase_22 AC 74 ms
19,464 KB
testcase_23 AC 99 ms
19,460 KB
testcase_24 AC 104 ms
19,604 KB
testcase_25 AC 99 ms
19,412 KB
testcase_26 AC 100 ms
19,416 KB
testcase_27 AC 99 ms
19,496 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from sys import stdin
N, *R = map(int, stdin.read().split())

res = 0
mat = 0
while R[mat] != N:
    prc = 0
    for i in range(mat, R[mat]):
        if R[prc] < R[i]:
            prc = i
    mat = prc
    res += 1
print(res + 1)


0