11521 | 2024-10-19 09:24:41 | Dávid | Kiváló Számok | cpp17 | Accepted 100/100 | 32ms | 1336 KiB |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
if(n <= 1) {
cout << -1 << endl;
return 0;
}
if(n % 2 == 0) {
for(int i = 0; i < n / 2; i++) {
cout << 15;
}
} else {
for(int i = 0; i < (n - 3) / 2; i++) {
cout << 15;
}
cout << 111;
}
cout << endl;
return 0;
}
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 | 500 KiB | ||||
6 | Accepted | 1ms | 320 KiB | ||||
7 | Accepted | 1ms | 320 KiB | ||||
8 | Accepted | 1ms | 320 KiB | ||||
subtask3 | 33/33 | ||||||
9 | Accepted | 8ms | 756 KiB | ||||
10 | Accepted | 17ms | 652 KiB | ||||
11 | Accepted | 20ms | 964 KiB | ||||
12 | Accepted | 17ms | 656 KiB | ||||
13 | Accepted | 17ms | 844 KiB | ||||
14 | Accepted | 9ms | 440 KiB | ||||
15 | Accepted | 4ms | 460 KiB | ||||
16 | Accepted | 8ms | 584 KiB | ||||
17 | Accepted | 13ms | 660 KiB | ||||
18 | Accepted | 18ms | 868 KiB | ||||
19 | Accepted | 7ms | 780 KiB | ||||
20 | Accepted | 24ms | 1092 KiB | ||||
subtask4 | 34/34 | ||||||
21 | Accepted | 32ms | 1328 KiB | ||||
22 | Accepted | 7ms | 532 KiB | ||||
23 | Accepted | 32ms | 1336 KiB | ||||
24 | Accepted | 32ms | 1336 KiB | ||||
25 | Accepted | 26ms | 1028 KiB | ||||
26 | Accepted | 14ms | 752 KiB | ||||
27 | Accepted | 27ms | 1124 KiB | ||||
28 | Accepted | 24ms | 1076 KiB | ||||
29 | Accepted | 4ms | 500 KiB | ||||
30 | Accepted | 19ms | 756 KiB | ||||
31 | Accepted | 19ms | 792 KiB | ||||
32 | Accepted | 1ms | 320 KiB | ||||
33 | Accepted | 3ms | 320 KiB |