#include<stdio.h>
#include<iostream>
#include<math.h>
#include<stdlib.h>
#include<ctype.h>
#include<algorithm>
#include<vector>
#include<string.h>
#include<queue>
#include<stack>
#include<set>
#include<map>
#include<sstream>
#include<time.h>
#include<malloc.h>
using namespace std;
int n,m;
int main ()
{
while (scanf ("%d %d",&n,&m)!=EOF && m && n)
{
int ok = 1 ;
for(;;)
{
if (n>m)
swap(n,m);
if (m % n ==0)
break;
if (m-n > n)
break;
m-=n;
ok=!ok;
}
if (ok)
printf("Stan wins\n");
else
printf("Ollie wins\n");
}
return 0;
}
标签:ok,int,wins,2348,break,poj,&&,include From: https://blog.51cto.com/u_15990681/6098465