11854 | 2024-11-12 12:18:15 | tothbenedek | A Négyszögletű Kerek Erdő | python3 | Wrong answer 0/100 | 17ms | 3148 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 | 2872 KiB | ||||
2 | Wrong answer | 16ms | 2864 KiB | ||||
subtask2 | 0/40 | ||||||
3 | Wrong answer | 17ms | 3088 KiB | ||||
4 | Wrong answer | 17ms | 3148 KiB | ||||
5 | Wrong answer | 17ms | 2892 KiB | ||||
6 | Wrong answer | 17ms | 2860 KiB | ||||
7 | Wrong answer | 17ms | 3032 KiB | ||||
8 | Wrong answer | 17ms | 2872 KiB | ||||
9 | Accepted | 17ms | 2888 KiB | ||||
subtask3 | 0/20 | ||||||
10 | Wrong answer | 16ms | 3080 KiB | ||||
11 | Wrong answer | 16ms | 3084 KiB | ||||
12 | Wrong answer | 17ms | 2872 KiB | ||||
13 | Wrong answer | 16ms | 2972 KiB | ||||
14 | Wrong answer | 16ms | 3072 KiB | ||||
subtask4 | 0/40 | ||||||
15 | Wrong answer | 16ms | 3004 KiB | ||||
16 | Wrong answer | 17ms | 2872 KiB | ||||
17 | Wrong answer | 16ms | 2864 KiB | ||||
18 | Wrong answer | 16ms | 2872 KiB | ||||
19 | Wrong answer | 16ms | 3076 KiB | ||||
20 | Wrong answer | 16ms | 2952 KiB | ||||
21 | Wrong answer | 16ms | 2872 KiB |