Advertisement
a53

PC

a53
Jan 24th, 2017
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. #include <fstream>
  2. using namespace std;
  3. ifstream f("pc.in");
  4. ofstream g("pc.out");
  5. int T,x;
  6.  
  7. int main()
  8. {
  9. f>>T;
  10. while(T--)
  11. {
  12. f>>x;
  13. if(x%2)
  14. g<<1<<' ';
  15. else
  16. g<<0<<' ';
  17. }
  18. return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement