HDU 3836 No Gambling

我们发现后手是堵不死先手的,如果后手不管先手任他走,那么先手要先一步走到;

View Code
#include<iostream>

 #include<cstdio>

 #include<cstdlib>

 #include<algorithm>

 #include<cmath>

 #include<queue>

 #include<set>

 #include<map>

 #include<cstring>

 #include<vector>

 #include<string>

 #define LL long long

 using namespace std;

 

 int main(  )

 { 

     int n;

     while( scanf( "%d",&n ),n != -1 )

     {

          printf( "I bet on Oregon Maple~\n" );    

     }

     //system( "pause" );

     return 0;

 }

 

你可能感兴趣的:(HDU)