65232023-12-06 13:46:45mraronA Négyszögletű Kerek Erdőcpp17Accepted 100/1003ms3888 KiB
// @check-accepted: examples N5 N100 full
#include <iostream>
using namespace std;

int main() {
    int n,a,b;
    cin>>n>>a>>b;
    int fak;
    if(a<=b) {
        fak=b-a+1;
    }else {
        fak=n-a+b+1;
    }

    if(fak<5) {
        cout<<"Tul konnyu!\n";
    }else {
        cout<<fak<<"\n";
    }

    return 0;
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted3ms1872 KiB
2Accepted3ms2124 KiB
subtask240/40
3Accepted3ms2184 KiB
4Accepted3ms2384 KiB
5Accepted3ms2636 KiB
6Accepted3ms2840 KiB
7Accepted3ms2928 KiB
8Accepted3ms3056 KiB
9Accepted3ms3268 KiB
subtask320/20
10Accepted3ms3372 KiB
11Accepted3ms3480 KiB
12Accepted3ms3564 KiB
13Accepted3ms3716 KiB
14Accepted3ms3708 KiB
subtask440/40
15Accepted3ms3680 KiB
16Accepted3ms3672 KiB
17Accepted3ms3676 KiB
18Accepted3ms3800 KiB
19Accepted3ms3884 KiB
20Accepted2ms3888 KiB
21Accepted3ms3884 KiB