118522024-11-12 12:16:51hosszumarcellA Négyszögletű Kerek Erdőpython3Wrong answer 0/10016ms3340 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!')
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted16ms2876 KiB
2Accepted16ms2872 KiB
subtask20/40
3Accepted16ms3084 KiB
4Accepted14ms3020 KiB
5Accepted16ms3088 KiB
6Accepted16ms2940 KiB
7Accepted16ms3176 KiB
8Wrong answer16ms3088 KiB
9Accepted16ms2868 KiB
subtask30/20
10Wrong answer16ms3268 KiB
11Wrong answer16ms2872 KiB
12Accepted16ms3340 KiB
13Accepted14ms2872 KiB
14Wrong answer16ms3060 KiB
subtask40/40
15Accepted14ms3064 KiB
16Accepted16ms3064 KiB
17Wrong answer16ms2872 KiB
18Accepted16ms2872 KiB
19Wrong answer16ms2892 KiB
20Accepted16ms2872 KiB
21Wrong answer14ms2888 KiB