67022023-12-17 17:02:31MagyarKendeSZLGA Négyszögletű Kerek Erdőcpp17Wrong answer 0/1003ms3720 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;
    }

    cout << (result > 4 ? to_string(result) : "Tul konnyu!") << endl;
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted3ms1816 KiB
2Accepted3ms2048 KiB
subtask20/40
3Accepted3ms2212 KiB
4Accepted3ms2328 KiB
5Accepted3ms2404 KiB
6Accepted3ms2524 KiB
7Accepted3ms2612 KiB
8Wrong answer3ms2748 KiB
9Accepted3ms2964 KiB
subtask30/20
10Wrong answer3ms3044 KiB
11Wrong answer3ms3296 KiB
12Accepted3ms3412 KiB
13Accepted3ms3252 KiB
14Wrong answer3ms3256 KiB
subtask40/40
15Accepted3ms3256 KiB
16Accepted3ms3252 KiB
17Wrong answer3ms3380 KiB
18Accepted3ms3468 KiB
19Wrong answer3ms3460 KiB
20Accepted3ms3712 KiB
21Wrong answer3ms3720 KiB