6523 | 2023-12-06 13:46:45 | mraron | A Négyszögletű Kerek Erdő | cpp17 | Accepted 100/100 | 3ms | 3888 KiB |
// @check-accepted: examples N5 N100 full
#include <iostream>
using namespace std;
int main() {
int n,a,b;
cin>>n>>a>>b;
int fak;
if(a<=b) {
fak=b-a+1;
}else {
fak=n-a+b+1;
}
if(fak<5) {
cout<<"Tul konnyu!\n";
}else {
cout<<fak<<"\n";
}
return 0;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 3ms | 1872 KiB | ||||
2 | Accepted | 3ms | 2124 KiB | ||||
subtask2 | 40/40 | ||||||
3 | Accepted | 3ms | 2184 KiB | ||||
4 | Accepted | 3ms | 2384 KiB | ||||
5 | Accepted | 3ms | 2636 KiB | ||||
6 | Accepted | 3ms | 2840 KiB | ||||
7 | Accepted | 3ms | 2928 KiB | ||||
8 | Accepted | 3ms | 3056 KiB | ||||
9 | Accepted | 3ms | 3268 KiB | ||||
subtask3 | 20/20 | ||||||
10 | Accepted | 3ms | 3372 KiB | ||||
11 | Accepted | 3ms | 3480 KiB | ||||
12 | Accepted | 3ms | 3564 KiB | ||||
13 | Accepted | 3ms | 3716 KiB | ||||
14 | Accepted | 3ms | 3708 KiB | ||||
subtask4 | 40/40 | ||||||
15 | Accepted | 3ms | 3680 KiB | ||||
16 | Accepted | 3ms | 3672 KiB | ||||
17 | Accepted | 3ms | 3676 KiB | ||||
18 | Accepted | 3ms | 3800 KiB | ||||
19 | Accepted | 3ms | 3884 KiB | ||||
20 | Accepted | 2ms | 3888 KiB | ||||
21 | Accepted | 3ms | 3884 KiB |