Lucian_Adrian

Untitled

Aug 18th, 2021
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. #include <iostream>
  2. #include <fstream>
  3.  
  4. using namespace std;
  5.  
  6. ifstream fin("9lan.in");
  7. ofstream fout("9lan.out");
  8.  
  9. int n;
  10.  
  11. int main()
  12. {
  13. fin>>n;
  14. if(n == 0){
  15. fout << 1;
  16. return 0;
  17. }
  18. if(n%2==0)
  19. fout<<1;
  20. else fout<<9;
  21. return 0;
  22. }
  23.  
Advertisement
Add Comment
Please, Sign In to add comment