10375 | 2024-04-01 16:04:52 | 111 | Kiváló Számok | cpp17 | Accepted 100/100 | 17ms | 4692 KiB |
#include <bits/stdc++.h>
using namespace std;
#define int long long
signed main(){
ios::sync_with_stdio(false);
cin.tie(nullptr);
int N;
cin>>N;
if(N%2&&N>=3){
cout<<"111";
N-=3;
for(int i=0;i*2<N;i++){
cout<<"15";
}
cout<<'\n';
}
else if(N%2==0){
for(int i=0;i*2<N;i++){
cout<<"15";
}
cout<<'\n';
return 0;
}
else{
cout<<"-1\n";
}
return 0;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 3ms | 1760 KiB | ||||
subtask2 | 33/33 | ||||||
2 | Accepted | 3ms | 2080 KiB | ||||
3 | Accepted | 3ms | 2436 KiB | ||||
4 | Accepted | 3ms | 2636 KiB | ||||
5 | Accepted | 3ms | 2676 KiB | ||||
6 | Accepted | 3ms | 2872 KiB | ||||
7 | Accepted | 2ms | 2836 KiB | ||||
8 | Accepted | 2ms | 3068 KiB | ||||
subtask3 | 33/33 | ||||||
9 | Accepted | 6ms | 3224 KiB | ||||
10 | Accepted | 9ms | 3340 KiB | ||||
11 | Accepted | 10ms | 3332 KiB | ||||
12 | Accepted | 9ms | 3332 KiB | ||||
13 | Accepted | 9ms | 3316 KiB | ||||
14 | Accepted | 7ms | 3328 KiB | ||||
15 | Accepted | 4ms | 3292 KiB | ||||
16 | Accepted | 6ms | 3316 KiB | ||||
17 | Accepted | 8ms | 3316 KiB | ||||
18 | Accepted | 10ms | 3432 KiB | ||||
19 | Accepted | 4ms | 3356 KiB | ||||
20 | Accepted | 13ms | 3388 KiB | ||||
subtask4 | 34/34 | ||||||
21 | Accepted | 17ms | 3584 KiB | ||||
22 | Accepted | 4ms | 3628 KiB | ||||
23 | Accepted | 17ms | 3608 KiB | ||||
24 | Accepted | 17ms | 3868 KiB | ||||
25 | Accepted | 13ms | 3724 KiB | ||||
26 | Accepted | 8ms | 3720 KiB | ||||
27 | Accepted | 14ms | 3720 KiB | ||||
28 | Accepted | 13ms | 3948 KiB | ||||
29 | Accepted | 4ms | 3904 KiB | ||||
30 | Accepted | 10ms | 3932 KiB | ||||
31 | Accepted | 10ms | 4144 KiB | ||||
32 | Accepted | 3ms | 4360 KiB | ||||
33 | Accepted | 4ms | 4692 KiB |