Submission #29691441


Source Code Expand

Copy
from collections import defaultdict
import string
import math
a = list(map(int, input().split()))
i, k = 0, 0
while k < 2:
i = a[i]
k += 1
print(a[i])
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
from collections import defaultdict
import string
import math

a = list(map(int, input().split()))
i, k = 0, 0
while k < 2:
  i = a[i]
  k += 1

print(a[i])

Submission Info

Submission Time
Task A - Digit Machine
User janux
Language Python (3.8.2)
Score 100
Code Size 166 Byte
Status AC
Exec Time 35 ms
Memory 9940 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 10
Set Name Test Cases
Sample example0.txt, example1.txt, example2.txt
All 000.txt, 001.txt, 002.txt, 003.txt, 004.txt, 005.txt, 006.txt, example0.txt, example1.txt, example2.txt
Case Name Status Exec Time Memory
000.txt AC 34 ms 9788 KB
001.txt AC 31 ms 9816 KB
002.txt AC 25 ms 9804 KB
003.txt AC 25 ms 9636 KB
004.txt AC 23 ms 9940 KB
005.txt AC 24 ms 9896 KB
006.txt AC 35 ms 9880 KB
example0.txt AC 24 ms 9812 KB
example1.txt AC 26 ms 9936 KB
example2.txt AC 26 ms 9668 KB


2025-03-04 (Tue)
05:52:23 +00:00