結果
| 問題 | No.1868 Teleporting Cyanmond |
| コンテスト | |
| ユーザー |
tktk_snsn
|
| 提出日時 | 2022-03-11 21:40:07 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 133 bytes |
| 記録 | |
| コンパイル時間 | 288 ms |
| コンパイル使用メモリ | 21,284 KB |
| 実行使用メモリ | 24,428 KB |
| 最終ジャッジ日時 | 2026-08-28 09:40:22 |
| 合計ジャッジ時間 | 5,612 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | WA * 25 |
ソースコード
N = int(input())
A = list(map(int, input().split()))
ans = 0
now = 0
while now < N - 1:
now = A[now] - 1
ans += 1
print(ans)
tktk_snsn