11852 | 2024-11-12 12:16:51 | hosszumarcell | A Négyszögletű Kerek Erdő | python3 | Wrong answer 0/100 | 16ms | 3340 KiB |
N, A, B = [int(i) for i in input().split()]
s = 0
if A < B:
s = B - A + 1
if A > B:
s = (B-A) % N
if s >= 5:
print(s)
if s < 5:
print('Tul konnyu!')
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 16ms | 2876 KiB | ||||
2 | Accepted | 16ms | 2872 KiB | ||||
subtask2 | 0/40 | ||||||
3 | Accepted | 16ms | 3084 KiB | ||||
4 | Accepted | 14ms | 3020 KiB | ||||
5 | Accepted | 16ms | 3088 KiB | ||||
6 | Accepted | 16ms | 2940 KiB | ||||
7 | Accepted | 16ms | 3176 KiB | ||||
8 | Wrong answer | 16ms | 3088 KiB | ||||
9 | Accepted | 16ms | 2868 KiB | ||||
subtask3 | 0/20 | ||||||
10 | Wrong answer | 16ms | 3268 KiB | ||||
11 | Wrong answer | 16ms | 2872 KiB | ||||
12 | Accepted | 16ms | 3340 KiB | ||||
13 | Accepted | 14ms | 2872 KiB | ||||
14 | Wrong answer | 16ms | 3060 KiB | ||||
subtask4 | 0/40 | ||||||
15 | Accepted | 14ms | 3064 KiB | ||||
16 | Accepted | 16ms | 3064 KiB | ||||
17 | Wrong answer | 16ms | 2872 KiB | ||||
18 | Accepted | 16ms | 2872 KiB | ||||
19 | Wrong answer | 16ms | 2892 KiB | ||||
20 | Accepted | 16ms | 2872 KiB | ||||
21 | Wrong answer | 14ms | 2888 KiB |