Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <algorithm>
- #include <iostream>
- #include <array>
- #include <vector>
- #include <numeric>
- #include <random>
- #include <chrono>
- #include <set>
- #include <map>
- #include <queue>
- using namespace std;
- #define int long long
- const int INF = 1e18 + 7;
- const int MAXN = 1e4 + 1000;
- const int N = 1e5 + 10;
- int n;
- signed main() {
- ios_base::sync_with_stdio(false);
- cin.tie(nullptr);
- cin >> n;
- while (n) {
- if (n <= 9) {
- cout << "Stan wins.\n";
- return 0;
- } else if (n <= 18) {
- cout << "Ollie wins.\n";
- return 0;
- }
- n = (n + 17) / 18;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment