116102024-10-31 09:23:41MagyarKendeSZLGKiváló Számokpython3Runtime error 0/10017ms3068 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";
}

SubtaskSumTestVerdictTimeMemory
subtask10/0
1Runtime error14ms2872 KiB
subtask20/33
2Runtime error16ms2980 KiB
3Runtime error16ms2856 KiB
4Runtime error16ms2884 KiB
5Runtime error14ms2996 KiB
6Runtime error16ms3000 KiB
7Runtime error14ms2872 KiB
8Runtime error14ms3060 KiB
subtask30/33
9Runtime error16ms3060 KiB
10Runtime error17ms2872 KiB
11Runtime error16ms2872 KiB
12Runtime error14ms2972 KiB
13Runtime error16ms3044 KiB
14Runtime error17ms2872 KiB
15Runtime error16ms2832 KiB
16Runtime error16ms2872 KiB
17Runtime error16ms2852 KiB
18Runtime error14ms2840 KiB
19Runtime error14ms3020 KiB
20Runtime error14ms2980 KiB
subtask40/34
21Runtime error16ms2864 KiB
22Runtime error16ms2876 KiB
23Runtime error16ms2888 KiB
24Runtime error16ms2888 KiB
25Runtime error16ms2824 KiB
26Runtime error14ms2984 KiB
27Runtime error14ms3024 KiB
28Runtime error14ms2868 KiB
29Runtime error16ms2888 KiB
30Runtime error17ms3068 KiB
31Runtime error16ms3048 KiB
32Runtime error16ms2872 KiB
33Runtime error14ms3048 KiB