64832023-12-04 20:12:32BakosCsongorA Négyszögletű Kerek Erdőcpp11Wrong answer 0/1003ms3860 KiB
#include <iostream>
#include <fstream>

using namespace std;

int main(){
    ifstream fin("bemenet.txt");
    if(!fin.is_open()){
        cout << "Can not  open bemenet.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 << "Az ut " << x << " fat tartalmaz";
            return 0;
        }

    }
    else {
        int x;
        x = (N - A) + B + 1;
        if(x < 5){
            cout << "Tul konnyu";
            return 0;
        }
        else{
            cout << "Az ut " << x << " fat tartalmaz";
            return 0;
        }
    }
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Wrong answer3ms1952 KiB
2Wrong answer3ms2012 KiB
subtask20/40
3Wrong answer3ms2224 KiB
4Wrong answer3ms2480 KiB
5Wrong answer3ms2528 KiB
6Wrong answer3ms2652 KiB
7Wrong answer3ms2868 KiB
8Wrong answer3ms2992 KiB
9Wrong answer3ms3120 KiB
subtask30/20
10Wrong answer3ms3244 KiB
11Wrong answer3ms3288 KiB
12Wrong answer3ms3296 KiB
13Wrong answer3ms3304 KiB
14Wrong answer3ms3552 KiB
subtask40/40
15Wrong answer3ms3764 KiB
16Wrong answer3ms3732 KiB
17Wrong answer3ms3840 KiB
18Wrong answer2ms3724 KiB
19Wrong answer3ms3852 KiB
20Wrong answer2ms3624 KiB
21Wrong answer3ms3860 KiB