hdu1517

#include <bits/stdc++.h>
using namespace std;
int main()
{
  double n;  
  while (cin >> n)
  {
    while (n > 18) n /= 18;
    if (n <= 9)
      cout << "Stan wins." << endl;
    else cout << "Ollie wins." << endl;
  }
}

  

原文地址:https://www.cnblogs.com/NWUACM/p/6711387.html