結果
| 問題 | No.1868 Teleporting Cyanmond |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-03-11 22:16:52 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 123 bytes |
| 記録 | |
| コンパイル時間 | 656 ms |
| コンパイル使用メモリ | 96,356 KB |
| 実行使用メモリ | 97,536 KB |
| 最終ジャッジ日時 | 2026-08-28 10:33:02 |
| 合計ジャッジ時間 | 4,743 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | WA * 25 |
ソースコード
N = int(input())
R = list(map(int, input().split()))
now = 1
c = 0
while now != N:
now = R[now-1]
c += 1
print(c)