6483 | 2023-12-04 20:12:32 | BakosCsongor | A Négyszögletű Kerek Erdő | cpp11 | Wrong answer 0/100 | 3ms | 3860 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;
}
}
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Wrong answer | 3ms | 1952 KiB | ||||
2 | Wrong answer | 3ms | 2012 KiB | ||||
subtask2 | 0/40 | ||||||
3 | Wrong answer | 3ms | 2224 KiB | ||||
4 | Wrong answer | 3ms | 2480 KiB | ||||
5 | Wrong answer | 3ms | 2528 KiB | ||||
6 | Wrong answer | 3ms | 2652 KiB | ||||
7 | Wrong answer | 3ms | 2868 KiB | ||||
8 | Wrong answer | 3ms | 2992 KiB | ||||
9 | Wrong answer | 3ms | 3120 KiB | ||||
subtask3 | 0/20 | ||||||
10 | Wrong answer | 3ms | 3244 KiB | ||||
11 | Wrong answer | 3ms | 3288 KiB | ||||
12 | Wrong answer | 3ms | 3296 KiB | ||||
13 | Wrong answer | 3ms | 3304 KiB | ||||
14 | Wrong answer | 3ms | 3552 KiB | ||||
subtask4 | 0/40 | ||||||
15 | Wrong answer | 3ms | 3764 KiB | ||||
16 | Wrong answer | 3ms | 3732 KiB | ||||
17 | Wrong answer | 3ms | 3840 KiB | ||||
18 | Wrong answer | 2ms | 3724 KiB | ||||
19 | Wrong answer | 3ms | 3852 KiB | ||||
20 | Wrong answer | 2ms | 3624 KiB | ||||
21 | Wrong answer | 3ms | 3860 KiB |