6703 | 2023-12-17 17:06:29 | MagyarKendeSZLG | A Négyszögletű Kerek Erdő | cpp17 | Accepted 100/100 | 3ms | 3844 KiB |
#include <fstream>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
int N, A, B;
cin >> N >> A >> B;
int result = 0;
if (A < B) {
result = B - A + 1;
}
else if (A > B) {
result = N - A + B + 1;
}
cout << (result > 4 ? to_string(result) : "Tul konnyu!") << endl;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 3ms | 1680 KiB | ||||
2 | Accepted | 3ms | 1848 KiB | ||||
subtask2 | 40/40 | ||||||
3 | Accepted | 3ms | 2096 KiB | ||||
4 | Accepted | 3ms | 2332 KiB | ||||
5 | Accepted | 3ms | 2512 KiB | ||||
6 | Accepted | 3ms | 2564 KiB | ||||
7 | Accepted | 3ms | 2700 KiB | ||||
8 | Accepted | 3ms | 3084 KiB | ||||
9 | Accepted | 3ms | 3000 KiB | ||||
subtask3 | 20/20 | ||||||
10 | Accepted | 3ms | 3116 KiB | ||||
11 | Accepted | 3ms | 3352 KiB | ||||
12 | Accepted | 3ms | 3356 KiB | ||||
13 | Accepted | 3ms | 3444 KiB | ||||
14 | Accepted | 3ms | 3628 KiB | ||||
subtask4 | 40/40 | ||||||
15 | Accepted | 3ms | 3636 KiB | ||||
16 | Accepted | 3ms | 3488 KiB | ||||
17 | Accepted | 3ms | 3488 KiB | ||||
18 | Accepted | 3ms | 3488 KiB | ||||
19 | Accepted | 3ms | 3616 KiB | ||||
20 | Accepted | 3ms | 3824 KiB | ||||
21 | Accepted | 3ms | 3844 KiB |