hdu 2897 邂逅明下 (巴什博弈)

#include<cmath>
#include<cstdio>
#include<cstring>
#include<iostream>
#include<algorithm>
using namespace std;
int main()
{
    int n,p,q;
    int i,j,k;
    while(scanf("%d%d%d",&n,&p,&q)!=EOF)
    {
        if(n%(p+q)<=p&&n%(p+q)!=0)
        {
            printf("LOST
");
        }
        else printf("WIN
");
    }
    return 0;
}
原文地址:https://www.cnblogs.com/sola1994/p/4743585.html