解题连接: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.\n"); else printf("Stan wins.\n"); } return 0; }
时间: 2024-10-25 21:12:30