結果

問題 No.1868 Teleporting Cyanmond
ユーザー shiomusubi496shiomusubi496
提出日時 2021-11-23 09:59:49
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 216 bytes
コンパイル時間 712 ms
コンパイル使用メモリ 10,572 KB
実行使用メモリ 23,084 KB
最終ジャッジ日時 2023-10-13 19:33:41
合計ジャッジ時間 6,110 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
14,740 KB
testcase_01 AC 16 ms
7,924 KB
testcase_02 AC 16 ms
7,876 KB
testcase_03 AC 50 ms
17,344 KB
testcase_04 AC 44 ms
15,512 KB
testcase_05 AC 17 ms
8,484 KB
testcase_06 AC 23 ms
9,708 KB
testcase_07 AC 31 ms
12,520 KB
testcase_08 AC 26 ms
11,116 KB
testcase_09 AC 30 ms
12,232 KB
testcase_10 AC 54 ms
16,480 KB
testcase_11 AC 17 ms
8,260 KB
testcase_12 AC 25 ms
10,264 KB
testcase_13 AC 1,566 ms
13,144 KB
testcase_14 TLE -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
R = list(map(int, input().split()))
ans = 0
now = 0
while R[now] != N:
    nxt = 0
    for i in range(R[now]):
        if R[nxt] < R[i]:
            nxt = i
    now = nxt
    ans += 1
print(ans + 1)
0