mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
17 lines
263 B
C++
17 lines
263 B
C++
|
#include<iostream>
|
||
|
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;
|
||
|
}
|
||
|
return 0;
|
||
|
}
|