题目传送门:http://codeforces.com/gym/100623/attachments
题解:额...这道题不能再简单了...输入1输出0,输入0输出1,输入其他的奇数先来个4,然后/2,输出那么多个8
Code:
#include <iostream>
#include <cstdio>
using namespace std;
int main()
{
freopen("holes.in","r",stdin);
freopen("holes.out","w",stdout);
int a;
while(cin>>a)
{
if(a==0)
cout<<"1"<<endl;
else if(a==1)
cout<<"0"<<endl;
else
{
if(a&1)
{
cout<<"4";
a--;
}
while(a)
{
cout<<"8";
a-=2;
}
cout<<endl;
}
}
return 0;
}