11610 | 2024-10-31 09:23:41 | MagyarKendeSZLG | Kiváló Számok | python3 | Runtime error 0/100 | 17ms | 3068 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 | Runtime error | 14ms | 2872 KiB | ||||
subtask2 | 0/33 | ||||||
2 | Runtime error | 16ms | 2980 KiB | ||||
3 | Runtime error | 16ms | 2856 KiB | ||||
4 | Runtime error | 16ms | 2884 KiB | ||||
5 | Runtime error | 14ms | 2996 KiB | ||||
6 | Runtime error | 16ms | 3000 KiB | ||||
7 | Runtime error | 14ms | 2872 KiB | ||||
8 | Runtime error | 14ms | 3060 KiB | ||||
subtask3 | 0/33 | ||||||
9 | Runtime error | 16ms | 3060 KiB | ||||
10 | Runtime error | 17ms | 2872 KiB | ||||
11 | Runtime error | 16ms | 2872 KiB | ||||
12 | Runtime error | 14ms | 2972 KiB | ||||
13 | Runtime error | 16ms | 3044 KiB | ||||
14 | Runtime error | 17ms | 2872 KiB | ||||
15 | Runtime error | 16ms | 2832 KiB | ||||
16 | Runtime error | 16ms | 2872 KiB | ||||
17 | Runtime error | 16ms | 2852 KiB | ||||
18 | Runtime error | 14ms | 2840 KiB | ||||
19 | Runtime error | 14ms | 3020 KiB | ||||
20 | Runtime error | 14ms | 2980 KiB | ||||
subtask4 | 0/34 | ||||||
21 | Runtime error | 16ms | 2864 KiB | ||||
22 | Runtime error | 16ms | 2876 KiB | ||||
23 | Runtime error | 16ms | 2888 KiB | ||||
24 | Runtime error | 16ms | 2888 KiB | ||||
25 | Runtime error | 16ms | 2824 KiB | ||||
26 | Runtime error | 14ms | 2984 KiB | ||||
27 | Runtime error | 14ms | 3024 KiB | ||||
28 | Runtime error | 14ms | 2868 KiB | ||||
29 | Runtime error | 16ms | 2888 KiB | ||||
30 | Runtime error | 17ms | 3068 KiB | ||||
31 | Runtime error | 16ms | 3048 KiB | ||||
32 | Runtime error | 16ms | 2872 KiB | ||||
33 | Runtime error | 14ms | 3048 KiB |