11498 | 2024-10-13 10:00:10 | ncs | Kiváló Számok | cpp17 | Wrong answer 0/100 | 8ms | 2476 KiB |
#include <bits/stdc++.h>
using namespace std;
#define f(i,k,n) for(int i=k; i<n; i++)
#define ll long long
const int inf = INT_MAX;
void solve()
{
int n;
cin>>n;
if(n==1)
{
cout<<"-1\n";
return;
}
string s="";
if(n%3==1)
{
s+="1155";
n-=4;
}
else if(n%3==2)
{
s+="15";
n-=2;
}
f(i,0,n) s+="1";
cout<<s<<"\n";
}
int main()
{
ios::sync_with_stdio(0);
cin.tie(0);
int t=1;
//cin>>t;
while(t--) solve();
cout<<"test!!!";
return 0;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Wrong answer | 1ms | 320 KiB | ||||
subtask2 | 0/33 | ||||||
2 | Wrong answer | 1ms | 380 KiB | ||||
3 | Wrong answer | 1ms | 320 KiB | ||||
4 | Wrong answer | 1ms | 320 KiB | ||||
5 | Wrong answer | 1ms | 320 KiB | ||||
6 | Wrong answer | 1ms | 320 KiB | ||||
7 | Wrong answer | 1ms | 500 KiB | ||||
8 | Wrong answer | 1ms | 320 KiB | ||||
subtask3 | 0/33 | ||||||
9 | Wrong answer | 3ms | 968 KiB | ||||
10 | Wrong answer | 4ms | 1296 KiB | ||||
11 | Wrong answer | 6ms | 1536 KiB | ||||
12 | Wrong answer | 4ms | 1492 KiB | ||||
13 | Wrong answer | 4ms | 1516 KiB | ||||
14 | Wrong answer | 3ms | 980 KiB | ||||
15 | Wrong answer | 2ms | 580 KiB | ||||
16 | Wrong answer | 3ms | 968 KiB | ||||
17 | Wrong answer | 4ms | 1076 KiB | ||||
18 | Wrong answer | 4ms | 1520 KiB | ||||
19 | Wrong answer | 2ms | 916 KiB | ||||
20 | Wrong answer | 7ms | 1752 KiB | ||||
subtask4 | 0/34 | ||||||
21 | Wrong answer | 8ms | 2284 KiB | ||||
22 | Wrong answer | 2ms | 712 KiB | ||||
23 | Wrong answer | 8ms | 2476 KiB | ||||
24 | Wrong answer | 8ms | 2396 KiB | ||||
25 | Wrong answer | 7ms | 2028 KiB | ||||
26 | Wrong answer | 4ms | 1296 KiB | ||||
27 | Wrong answer | 7ms | 2064 KiB | ||||
28 | Wrong answer | 6ms | 1776 KiB | ||||
29 | Wrong answer | 2ms | 572 KiB | ||||
30 | Wrong answer | 6ms | 1520 KiB | ||||
31 | Wrong answer | 6ms | 1596 KiB | ||||
32 | Wrong answer | 1ms | 320 KiB | ||||
33 | Wrong answer | 1ms | 568 KiB |