Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- #define taskname "fc128_vsum"
- typedef long long ll;
- void ioset() {
- cin.tie(0)->sync_with_stdio(0);
- if (fopen(taskname".in", "r")) {
- freopen(taskname".in", "r", stdin);
- // freopen(taskname".out", "w", stdout);
- }
- }
- void solve() {
- int n; cin >> n;
- if (n % 2) cout << 2 << '\n';
- else cout << (n / 2) % 2 << '\n';
- }
- int main() {
- ioset();
- solve();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement