結果

問題 No.1868 Teleporting Cyanmond
ユーザー Goltermann大和
提出日時 2022-03-11 21:35:38
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 126 bytes
コンパイル時間 602 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 20,584 KB
最終ジャッジ日時 2024-09-16 01:43:26
合計ジャッジ時間 3,040 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other WA * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
r = list(map(int,input().split()))
now = 1
ans = 0
while now != n:
    now = r[now-1]
    ans += 1
print(ans)
0