67032023-12-17 17:06:29MagyarKendeSZLGA Négyszögletű Kerek Erdőcpp17Accepted 100/1003ms3844 KiB
#include <fstream>
#include <iostream>
#include <string>
#include <vector>

using namespace std;

int main() {
    int N, A, B;
    cin >> N >> A >> B;
    
    int result = 0;
    
    if (A < B) {
        result = B - A + 1;
    }
    else if (A > B) {
        result = N - A + B + 1;
    }

    cout << (result > 4 ? to_string(result) : "Tul konnyu!") << endl;
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted3ms1680 KiB
2Accepted3ms1848 KiB
subtask240/40
3Accepted3ms2096 KiB
4Accepted3ms2332 KiB
5Accepted3ms2512 KiB
6Accepted3ms2564 KiB
7Accepted3ms2700 KiB
8Accepted3ms3084 KiB
9Accepted3ms3000 KiB
subtask320/20
10Accepted3ms3116 KiB
11Accepted3ms3352 KiB
12Accepted3ms3356 KiB
13Accepted3ms3444 KiB
14Accepted3ms3628 KiB
subtask440/40
15Accepted3ms3636 KiB
16Accepted3ms3488 KiB
17Accepted3ms3488 KiB
18Accepted3ms3488 KiB
19Accepted3ms3616 KiB
20Accepted3ms3824 KiB
21Accepted3ms3844 KiB