标签:multi cts ott using first mission any == may
25 7
11 7
4 7
4 3
1 3
1 0
#include<iostream> #include<algorithm> using namespace std; int main() { int n,m; while(cin>>n>>m) { if(n==0&&m==0)break; int cnt=0; int ans=0; while(1) { if(n<m)swap(n,m); ans=n/m; if(ans>=2)break; cnt++; n%=m; if(n==0) { cnt++; break; } } if(cnt%2==1)cout<<"Ollie wins"<<endl; else cout<<"Stan wins"<<endl;; } return 0; }
标签:multi cts ott using first mission any == may
原文地址:https://www.cnblogs.com/minxuan/p/8747256.html