12136 | 2024-12-03 13:38:23 | TortelliniJr | A Négyszögletű Kerek Erdő | cpp17 | Accepted 100/100 | 2ms | 400 KiB |
#include <iostream>
using namespace std;
int main()
{
int n, a, b;
cin >> n >> a >> b;
if (a <= b)
{
if (b - a + 1 >= 5)
{
cout << b - a + 1 << endl;
return 0;
}
else
{
cout << "Tul konnyu!" << endl;
return 0;
}
}
else
{
b += n;
if (b - a + 1 >= 5)
{
cout << b - a + 1 << endl;
return 0;
}
else
{
cout << "Tul konnyu!" << endl;
return 0;
}
}
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 1ms | 320 KiB | ||||
2 | Accepted | 1ms | 320 KiB | ||||
subtask2 | 40/40 | ||||||
3 | Accepted | 1ms | 320 KiB | ||||
4 | Accepted | 1ms | 320 KiB | ||||
5 | Accepted | 1ms | 320 KiB | ||||
6 | Accepted | 1ms | 320 KiB | ||||
7 | Accepted | 1ms | 320 KiB | ||||
8 | Accepted | 1ms | 320 KiB | ||||
9 | Accepted | 1ms | 320 KiB | ||||
subtask3 | 20/20 | ||||||
10 | Accepted | 1ms | 320 KiB | ||||
11 | Accepted | 1ms | 320 KiB | ||||
12 | Accepted | 1ms | 400 KiB | ||||
13 | Accepted | 1ms | 320 KiB | ||||
14 | Accepted | 1ms | 320 KiB | ||||
subtask4 | 40/40 | ||||||
15 | Accepted | 1ms | 320 KiB | ||||
16 | Accepted | 2ms | 320 KiB | ||||
17 | Accepted | 1ms | 320 KiB | ||||
18 | Accepted | 2ms | 320 KiB | ||||
19 | Accepted | 1ms | 324 KiB | ||||
20 | Accepted | 1ms | 320 KiB | ||||
21 | Accepted | 1ms | 320 KiB |