65462023-12-08 14:51:36BakosCsongorA Négyszögletű Kerek Erdőcpp17Wrong answer 0/1003ms4256 KiB
#include <iostream>
#include <fstream>

using namespace std;

int main(){
    ifstream fin("input.txt");
    if(!fin.is_open()){
        cout << "Can not  open input.txt";
        return 0;
    }
    int N;
    fin >> N;
    int A;
    fin >> A;
    int B;
    fin >> B;

    if(A == B){
        cout << "Tul konnyu!";
        return 0;
    }
    if(A < B){
        int x;
        x = B - A + 1;
        if(x < 5){
            cout << "Tul konnyu!";
            return 0;
        }
        else{
            cout << x;
            return 0;
        }

    }
    else {
        int x;
        x = (N - A) + B + 1;
        if(x < 5){
            cout << "Tul konnyu!";
            return 0;
        }
        else{
            cout << x;
            return 0;
        }
    }
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Wrong answer3ms1804 KiB
2Wrong answer3ms2064 KiB
subtask20/40
3Wrong answer3ms2300 KiB
4Wrong answer3ms2524 KiB
5Wrong answer2ms2548 KiB
6Wrong answer3ms2532 KiB
7Wrong answer3ms2732 KiB
8Wrong answer2ms2820 KiB
9Wrong answer2ms2940 KiB
subtask30/20
10Wrong answer3ms2976 KiB
11Wrong answer3ms3108 KiB
12Wrong answer3ms3316 KiB
13Wrong answer3ms3676 KiB
14Wrong answer3ms3788 KiB
subtask40/40
15Wrong answer3ms3868 KiB
16Wrong answer3ms3872 KiB
17Wrong answer3ms3876 KiB
18Wrong answer3ms4004 KiB
19Wrong answer3ms3996 KiB
20Wrong answer3ms4256 KiB
21Wrong answer2ms4240 KiB