結果
| 問題 |
No.1868 Teleporting Cyanmond
|
| コンテスト | |
| ユーザー |
nariyel
|
| 提出日時 | 2022-03-12 06:09:26 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 112 ms / 2,000 ms |
| コード長 | 232 bytes |
| コンパイル時間 | 834 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 20,764 KB |
| 最終ジャッジ日時 | 2024-09-16 11:35:11 |
| 合計ジャッジ時間 | 3,599 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 25 |
ソースコード
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)
nariyel