Advertisement
Guest User

Untitled

a guest
Nov 17th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #include <iostream>
  2. #include <algorithm>
  3. #include <string>
  4. #include <cmath>
  5. using namespace std;
  6. int main(){
  7. int n;
  8. cin >> n;
  9. if(n==0){
  10. cout << "1";
  11. return 0;
  12. }
  13. if(n==1) cout << "0";
  14. else if(n%2==1) cout << "4";
  15. for(int i=0;i<n/2;i++){
  16. cout << "8";
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement