11611 | 2024-10-31 09:24:10 | MagyarKendeSZLG | Kiváló Számok | cpp17 | Accepted 100/100 | 24ms | 1336 KiB |
#include <iostream>
using namespace std;
int main() {
int N;
cin >> N;
if (N == 1) {
cout << "-1\n";
exit(0);
}
if (N % 2 == 0) {
for (int i = 0; i < N; i += 2) { cout << "15"; }
cout << "\n";
exit(0);
}
cout << "111";
for (int i = 0; i < N - 3; i += 2) { cout << "15"; }
cout << "\n";
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 1ms | 320 KiB | ||||
subtask2 | 33/33 | ||||||
2 | Accepted | 1ms | 320 KiB | ||||
3 | Accepted | 1ms | 320 KiB | ||||
4 | Accepted | 1ms | 320 KiB | ||||
5 | Accepted | 1ms | 320 KiB | ||||
6 | Accepted | 1ms | 320 KiB | ||||
7 | Accepted | 1ms | 320 KiB | ||||
8 | Accepted | 1ms | 320 KiB | ||||
subtask3 | 33/33 | ||||||
9 | Accepted | 6ms | 488 KiB | ||||
10 | Accepted | 12ms | 768 KiB | ||||
11 | Accepted | 14ms | 976 KiB | ||||
12 | Accepted | 12ms | 692 KiB | ||||
13 | Accepted | 12ms | 784 KiB | ||||
14 | Accepted | 7ms | 572 KiB | ||||
15 | Accepted | 3ms | 320 KiB | ||||
16 | Accepted | 6ms | 568 KiB | ||||
17 | Accepted | 9ms | 568 KiB | ||||
18 | Accepted | 14ms | 880 KiB | ||||
19 | Accepted | 4ms | 568 KiB | ||||
20 | Accepted | 17ms | 1100 KiB | ||||
subtask4 | 34/34 | ||||||
21 | Accepted | 23ms | 1336 KiB | ||||
22 | Accepted | 4ms | 568 KiB | ||||
23 | Accepted | 23ms | 1196 KiB | ||||
24 | Accepted | 24ms | 1336 KiB | ||||
25 | Accepted | 17ms | 1080 KiB | ||||
26 | Accepted | 12ms | 688 KiB | ||||
27 | Accepted | 19ms | 1160 KiB | ||||
28 | Accepted | 17ms | 1080 KiB | ||||
29 | Accepted | 3ms | 320 KiB | ||||
30 | Accepted | 14ms | 896 KiB | ||||
31 | Accepted | 14ms | 772 KiB | ||||
32 | Accepted | 1ms | 500 KiB | ||||
33 | Accepted | 3ms | 320 KiB |