解题连接:http://blog.csdn.net/qinmusiyan/article/details/8016033
/* *********************************************** Author :devil Created Time :2016/03/08 11:41:53 ************************************************ */ #include <bits/stdc++.h> using namespace std; int main() { //freopen("in.txt","r",stdin); long long n; while(~scanf("%lld",&n)) { while(n>18) n=ceil(n*1.0/18); if(n>9) printf("Ollie wins. "); else printf("Stan wins. "); } return 0; }