1. 程式人生 > >Holes (SDUT 2018 Autumn Individual Contest

Holes (SDUT 2018 Autumn Individual Contest

#include <iostream>
#include<stdio.h>
using namespace std;
int main()
{freopen("holes.in","r",stdin);
    freopen("holes.out","w",stdout);

   int n;
   scanf("%d",&n);
   int l=n/2;
   int t=n%2;
   if(n==0)cout<<"1"<<endl;
   if(n==1)cout<<"0"<<endl;
   if(n!=0&&n!=1)
   {
       if(t!=0)cout<<"4";
       while(l)
       {
           cout<<"8";
           l--;
       }
       cout<<endl;
   }
    return 0;
}