12246 | 2024-12-10 14:48:00 | Csongi | A Négyszögletű Kerek Erdő | cpp17 | Time limit exceeded 60/100 | 300ms | 420 KiB |
#include <bits/stdc++.h>
#define ll long long
using namespace std;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
ll n, a, b, s = 1; cin >> n >> a >> b;
for (ll i = a; i != b; i++)
{
if (i == n)
{
i = 0;
}
s++;
}
if (s<5)
{
cout << "Tul konnyu!" << endl;
}
else
{
cout << s << 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 | 324 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 | 320 KiB | ||||
13 | Accepted | 1ms | 320 KiB | ||||
14 | Accepted | 1ms | 320 KiB | ||||
subtask4 | 0/40 | ||||||
15 | Time limit exceeded | 300ms | 356 KiB | ||||
16 | Accepted | 52ms | 320 KiB | ||||
17 | Accepted | 75ms | 420 KiB | ||||
18 | Accepted | 1ms | 320 KiB | ||||
19 | Accepted | 1ms | 320 KiB | ||||
20 | Time limit exceeded | 298ms | 320 KiB | ||||
21 | Time limit exceeded | 214ms | 320 KiB |