6702 | 2023-12-17 17:02:31 | MagyarKendeSZLG | A Négyszögletű Kerek Erdő | cpp17 | Wrong answer 0/100 | 3ms | 3720 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;
}
cout << (result > 4 ? to_string(result) : "Tul konnyu!") << endl;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 3ms | 1816 KiB | ||||
2 | Accepted | 3ms | 2048 KiB | ||||
subtask2 | 0/40 | ||||||
3 | Accepted | 3ms | 2212 KiB | ||||
4 | Accepted | 3ms | 2328 KiB | ||||
5 | Accepted | 3ms | 2404 KiB | ||||
6 | Accepted | 3ms | 2524 KiB | ||||
7 | Accepted | 3ms | 2612 KiB | ||||
8 | Wrong answer | 3ms | 2748 KiB | ||||
9 | Accepted | 3ms | 2964 KiB | ||||
subtask3 | 0/20 | ||||||
10 | Wrong answer | 3ms | 3044 KiB | ||||
11 | Wrong answer | 3ms | 3296 KiB | ||||
12 | Accepted | 3ms | 3412 KiB | ||||
13 | Accepted | 3ms | 3252 KiB | ||||
14 | Wrong answer | 3ms | 3256 KiB | ||||
subtask4 | 0/40 | ||||||
15 | Accepted | 3ms | 3256 KiB | ||||
16 | Accepted | 3ms | 3252 KiB | ||||
17 | Wrong answer | 3ms | 3380 KiB | ||||
18 | Accepted | 3ms | 3468 KiB | ||||
19 | Wrong answer | 3ms | 3460 KiB | ||||
20 | Accepted | 3ms | 3712 KiB | ||||
21 | Wrong answer | 3ms | 3720 KiB |