Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- using namespace std;
- ifstream fin("9lan.in");
- ofstream fout("9lan.out");
- int n;
- int main()
- {
- fin>>n;
- if(n == 0){
- fout << 1;
- return 0;
- }
- if(n%2==0)
- fout<<1;
- else fout<<9;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment