11424 | 2024-09-15 13:23:12 | Csongi | Kiváló Számok | cpp17 | Wrong answer 0/100 | 52ms | 3296 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)
{
cout << 15 << endl;
}
else
{
if (n % 3 == 0)
{
for (int i = 0; i < n; i++)
{
cout << 555;
}
}
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 | Accepted | 3ms | 412 KiB | ||||
3 | Accepted | 3ms | 360 KiB | ||||
4 | Wrong answer | 3ms | 360 KiB | ||||
5 | Accepted | 3ms | 360 KiB | ||||
6 | Accepted | 3ms | 360 KiB | ||||
7 | Wrong answer | 3ms | 364 KiB | ||||
8 | Accepted | 2ms | 232 KiB | ||||
subtask3 | 0/33 | ||||||
9 | Wrong answer | 14ms | 1048 KiB | ||||
10 | Accepted | 25ms | 836 KiB | ||||
11 | Wrong answer | 32ms | 2192 KiB | ||||
12 | Accepted | 25ms | 892 KiB | ||||
13 | Accepted | 26ms | 912 KiB | ||||
14 | Accepted | 14ms | 616 KiB | ||||
15 | Accepted | 8ms | 488 KiB | ||||
16 | Wrong answer | 13ms | 1140 KiB | ||||
17 | Wrong answer | 21ms | 1512 KiB | ||||
18 | Accepted | 28ms | 756 KiB | ||||
19 | Accepted | 10ms | 616 KiB | ||||
20 | Accepted | 35ms | 1088 KiB | ||||
subtask4 | 0/34 | ||||||
21 | Accepted | 46ms | 1200 KiB | ||||
22 | Accepted | 10ms | 632 KiB | ||||
23 | Accepted | 46ms | 1384 KiB | ||||
24 | Wrong answer | 52ms | 3296 KiB | ||||
25 | Wrong answer | 39ms | 2460 KiB | ||||
26 | Wrong answer | 23ms | 1552 KiB | ||||
27 | Accepted | 39ms | 1092 KiB | ||||
28 | Accepted | 34ms | 1128 KiB | ||||
29 | Accepted | 8ms | 632 KiB | ||||
30 | Accepted | 28ms | 796 KiB | ||||
31 | Accepted | 28ms | 912 KiB | ||||
32 | Accepted | 3ms | 376 KiB | ||||
33 | Wrong answer | 7ms | 616 KiB |