Adrien and Austin Gym - 101981A

https://cn.vjudge.net/problem/Gym-101981A 

思路:找规律; 

#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
//#include
using namespace std;

#define sfi(i) scanf("%d",&i)
#define sfs(i) scanf("%s",(i))
#define pri(i) printf("%d\n",i)
#define sff(i) scanf("%lf",&i)
#define ll long long
#define ull unsigned long long
#define mem(x,y) memset(x,y,sizeof(x))
#define INF 0x3f3f3f3f
#define eps 1e-10
#define PI acos(-1.0)
#define lowbit(x) ((x)&(-x))
#define zero(x) (((x)>0?(x):-(x))>n>>k;
    if(n==0)
    {
        f=0;
    }
    else if(k>=n)
    {
        f=1;
    }
    else
    {
        if(k==1&&n%2==0) f=0;

    }

    if(f) puts("Adrien");
    else puts("Austin");

    return 0;
}

 

你可能感兴趣的:(Adrien and Austin Gym - 101981A)