11425 | 2024-09-15 13:25:03 | Csongi | Kiváló Számok | cpp17 | Wrong answer 67/100 | 50ms | 1384 KiB |
#include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
int n;
cin >> n;
if (n % 3 == 0)
{
for (int i = 0; i < n; i++)
{
cout << 5;
}
}
else if (n % 3 == 1)
{
for (int i = 0; i < n - 2; i++)
{
cout << 1;
}
cout << 55 << endl;
}
else
{
for (int i = 0; i < n - 1; i++)
{
cout << 1;
}
cout << 5 << endl;
}
return 0;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 2ms | 232 KiB | ||||
subtask2 | 0/33 | ||||||
2 | Wrong answer | 2ms | 360 KiB | ||||
3 | Accepted | 3ms | 400 KiB | ||||
4 | Accepted | 3ms | 400 KiB | ||||
5 | Accepted | 2ms | 456 KiB | ||||
6 | Accepted | 2ms | 360 KiB | ||||
7 | Accepted | 2ms | 360 KiB | ||||
8 | Accepted | 2ms | 360 KiB | ||||
subtask3 | 33/33 | ||||||
9 | Accepted | 14ms | 616 KiB | ||||
10 | Accepted | 27ms | 932 KiB | ||||
11 | Accepted | 32ms | 1048 KiB | ||||
12 | Accepted | 27ms | 856 KiB | ||||
13 | Accepted | 28ms | 964 KiB | ||||
14 | Accepted | 16ms | 616 KiB | ||||
15 | Accepted | 8ms | 540 KiB | ||||
16 | Accepted | 13ms | 492 KiB | ||||
17 | Accepted | 20ms | 760 KiB | ||||
18 | Accepted | 29ms | 1000 KiB | ||||
19 | Accepted | 12ms | 616 KiB | ||||
20 | Accepted | 37ms | 1132 KiB | ||||
subtask4 | 34/34 | ||||||
21 | Accepted | 48ms | 1384 KiB | ||||
22 | Accepted | 10ms | 488 KiB | ||||
23 | Accepted | 50ms | 1320 KiB | ||||
24 | Accepted | 50ms | 1316 KiB | ||||
25 | Accepted | 39ms | 1272 KiB | ||||
26 | Accepted | 21ms | 744 KiB | ||||
27 | Accepted | 41ms | 1272 KiB | ||||
28 | Accepted | 35ms | 1020 KiB | ||||
29 | Accepted | 8ms | 632 KiB | ||||
30 | Accepted | 30ms | 760 KiB | ||||
31 | Accepted | 30ms | 924 KiB | ||||
32 | Accepted | 3ms | 504 KiB | ||||
33 | Accepted | 7ms | 488 KiB |