12144 | 2024-12-04 12:33:18 | TortelliniJr | Kiváló Számok | cpp17 | Wrong answer 67/100 | 24ms | 1336 KiB |
#include <iostream>
using namespace std;
int main()
{
int n;
cin >> n;
if (n == 1 || n == 3)
{
cout << "-1" << endl;;
return 0;
}
else if (n % 2 == 0)
{
for (int i = 0; i < n / 2; i++)
{
cout << "15";
}
cout << endl;
return 0;
}
else
{
for (int i = 0; i < (n - 3) / 2; i++)
{
cout << "15";
}
cout << "111" << endl;
return 0;
}
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 1ms | 320 KiB | ||||
subtask2 | 0/33 | ||||||
2 | Accepted | 1ms | 320 KiB | ||||
3 | Accepted | 1ms | 320 KiB | ||||
4 | Wrong answer | 1ms | 320 KiB | ||||
5 | Accepted | 1ms | 508 KiB | ||||
6 | Accepted | 1ms | 320 KiB | ||||
7 | Accepted | 1ms | 508 KiB | ||||
8 | Accepted | 1ms | 500 KiB | ||||
subtask3 | 33/33 | ||||||
9 | Accepted | 6ms | 468 KiB | ||||
10 | Accepted | 12ms | 780 KiB | ||||
11 | Accepted | 14ms | 876 KiB | ||||
12 | Accepted | 12ms | 780 KiB | ||||
13 | Accepted | 12ms | 760 KiB | ||||
14 | Accepted | 7ms | 568 KiB | ||||
15 | Accepted | 3ms | 416 KiB | ||||
16 | Accepted | 6ms | 444 KiB | ||||
17 | Accepted | 9ms | 544 KiB | ||||
18 | Accepted | 14ms | 740 KiB | ||||
19 | Accepted | 4ms | 568 KiB | ||||
20 | Accepted | 17ms | 1040 KiB | ||||
subtask4 | 34/34 | ||||||
21 | Accepted | 23ms | 1336 KiB | ||||
22 | Accepted | 4ms | 580 KiB | ||||
23 | Accepted | 23ms | 1336 KiB | ||||
24 | Accepted | 24ms | 1196 KiB | ||||
25 | Accepted | 17ms | 1088 KiB | ||||
26 | Accepted | 9ms | 568 KiB | ||||
27 | Accepted | 19ms | 1080 KiB | ||||
28 | Accepted | 17ms | 1080 KiB | ||||
29 | Accepted | 3ms | 320 KiB | ||||
30 | Accepted | 14ms | 804 KiB | ||||
31 | Accepted | 14ms | 800 KiB | ||||
32 | Accepted | 1ms | 320 KiB | ||||
33 | Accepted | 3ms | 320 KiB |