Advertisement
tuki2501

fc128_vsum.cpp

Nov 16th, 2021
681
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.43 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. #define taskname "fc128_vsum"
  5.  
  6. typedef long long ll;
  7.  
  8. void ioset() {
  9.   cin.tie(0)->sync_with_stdio(0);
  10.   if (fopen(taskname".in", "r")) {
  11.     freopen(taskname".in", "r", stdin);
  12.     // freopen(taskname".out", "w", stdout);
  13.   }
  14. }
  15.  
  16. void solve() {
  17.   int n; cin >> n;
  18.   if (n % 2) cout << 2 << '\n';
  19.   else cout << (n / 2) % 2 << '\n';
  20. }
  21.  
  22. int main() {
  23.   ioset();
  24.   solve();
  25. }
  26.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement