Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <fstream>
- using namespace std;
- ifstream f("pc.in");
- ofstream g("pc.out");
- int T,x;
- int main()
- {
- f>>T;
- while(T--)
- {
- f>>x;
- if(x%2)
- g<<1<<' ';
- else
- g<<0<<' ';
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement