HDU1517 A Multiplication Game

解题连接: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;
}

 

posted on 2016-03-08 18:30  恶devil魔  阅读(120)  评论(0编辑  收藏  举报

导航