HDU 1564 Play a game

偶数先手赢,奇数后手赢。

#pragma comment(linker, "/STACK:1024000000,1024000000")
#include<cstdio>
#include<cstring>
#include<cmath>
#include<algorithm>
#include<vector>
#include<map>
#include<set>
#include<queue>
#include<stack>
#include<iostream>
using namespace std;
typedef long long LL;
const double pi=acos(-1.0),eps=1e-8;
void File()
{
    freopen("D:\\in.txt","r",stdin);
    freopen("D:\\out.txt","w",stdout);
}
inline int read()
{
    char c = getchar();  while(!isdigit(c)) c = getchar();
    int x = 0;
    while(isdigit(c)) { x = x * 10 + c - '0'; c = getchar(); }
    return x;
}

int T;

int main()
{
    while(~scanf("%d",&T))
    {
        if(T==0) break;
        if(T%2==0) printf("8600\n");
        else printf("ailyanlu\n");
    }
    return 0;
}

 

posted @ 2016-08-05 11:55  Fighting_Heart  阅读(149)  评论(0编辑  收藏  举报