11809 | 2024-11-11 18:56:57 | bajozsa | A Négyszögletű Kerek Erdő | python3 | Time limit exceeded 60/100 | 287ms | 3072 KiB |
N, A, B = map(int, input().split())
db = 1
while A != B:
if A == N:
A = 1
db +=1
else:
A += 1
db +=1
print( db if db > 4 else "Tul konnyu!")
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 16ms | 2872 KiB | ||||
2 | Accepted | 16ms | 2864 KiB | ||||
subtask2 | 40/40 | ||||||
3 | Accepted | 16ms | 3048 KiB | ||||
4 | Accepted | 16ms | 3004 KiB | ||||
5 | Accepted | 17ms | 2872 KiB | ||||
6 | Accepted | 17ms | 2860 KiB | ||||
7 | Accepted | 16ms | 2872 KiB | ||||
8 | Accepted | 16ms | 2880 KiB | ||||
9 | Accepted | 16ms | 3048 KiB | ||||
subtask3 | 20/20 | ||||||
10 | Accepted | 16ms | 2980 KiB | ||||
11 | Accepted | 16ms | 2888 KiB | ||||
12 | Accepted | 16ms | 2872 KiB | ||||
13 | Accepted | 16ms | 2968 KiB | ||||
14 | Accepted | 16ms | 3020 KiB | ||||
subtask4 | 0/40 | ||||||
15 | Time limit exceeded | 287ms | 3072 KiB | ||||
16 | Time limit exceeded | 287ms | 2872 KiB | ||||
17 | Time limit exceeded | 287ms | 2872 KiB | ||||
18 | Accepted | 16ms | 3020 KiB | ||||
19 | Accepted | 14ms | 2872 KiB | ||||
20 | Time limit exceeded | 279ms | 2872 KiB | ||||
21 | Time limit exceeded | 287ms | 2872 KiB |