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;
 }
 
posted @ 2012-09-28 17:49  wutaoKeen  阅读(223)  评论(0编辑  收藏  举报