Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define _USE_MATH_DEFINES
- #include <iostream>
- #include <string>
- #include <map>
- #include <set>
- #include <algorithm>
- #include <vector>
- #include <stdio.h>
- #include <cmath>
- #include <math.h>
- #include <queue>
- #include <stack>
- #include <climits>
- #include <deque>
- #include <ctime>
- using namespace std;
- typedef long long ll;
- typedef unsigned long long ull;
- typedef unsigned int ui;
- #define mh() make_heap()
- #define poph() pop_heap()
- #define pushh() push_heap()
- #define sor(n) n.begin(), n.end()
- #define mp make_pair
- int main()
- {
- ll n;
- cin >> n;
- int ar[20] = { 0,1,1,2,0,2,1,2,0,1,1,2,0,1,1,2,0,1,1,2 };
- cout << ar[n % 20];
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment