fork download
  1. #include <bits/stdc++.h>
  2.  
  3. using namespace std;
  4.  
  5. int main(){
  6.  
  7. long long int n;
  8. cin>>n;
  9.  
  10. // if(n%4==0 || n%4==3){
  11. // cout<<0;
  12. // }
  13. // else{
  14. // cout<<1;
  15. // }
  16.  
  17. cout<<(n%4==0 || n%4==3 ? 0 : 1);
  18.  
  19. return 0;
  20.  
  21. }
Success #stdin #stdout 0.01s 5288KB
stdin
5
stdout
1