HU-863 No Gambiling

3769 ワード

http://acm.hdu.edu.cn/showproblem.php?pid=3863
                    No Gambiling
Time Limit:2000/1000 MS(Java/Others)    メモリLimit:65568/32768 K(Java/Others)Total Submission(s):1280    Acceepted Submission(s):886
Problem Description
One day,Flyvan introdduced a new game to his two friends,Oregon Maple and Graphe Skin.The game is quite simple.Gven n N-sizgrids,like the figre A shwn below(asN=4)The bluethe thethethethe bleeeininininininininineeethethethethethethethethethethethethe thethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethe...
HDU-3863 No Gambling
In the gameトゥトゥトゥトゥトゥトゥトゥトゥトゥトゥトゥトゥトゥトゥトゥトゥトゥトゥトゥトゥトゥトゥトゥトゥトゥトゥトゥトゥトゥトゥトゥトゥインインインインインインクリクリクリクリク.Theトゥトゥトゥトゥトゥトゥトゥトゥトゥトゥトゥトゥトゥトゥトゥトゥトゥトゥトゥトゥトゥトゥトゥトゥトゥトゥトゥトゥトゥトゥトゥトゥトゥトゥトゥトゥトゥトゥトゥトゥトゥトゥオオオオオオオオオオオオオオオオオオオオオオオストストストストストストストストストストストストストストストストストストストストストストストストストストストストストストストストストストストストストストストストストストストストストストストストストストストストストストストストストストストストストストストストストストストストストストストストストストストストストストストストストストストストストストストストストtop point and amost bottom point.Figure B shows a possible result.In addition,the stick shoudn’t get crossed.
Now Flyvan will give the number N,and his two friends will Playthe game.Both of the two playrs will chose the best stratgy.You can bet one player,and if he wins the game,you'get witwitte mone~
Since you are a talented programmer,you surely won’t just gambiling.Please write a program to find out t he player who you shout on.As Oregon Maple is elder,he will always play firs.
 
 
Input
Each line of the input is an integer N(2==N==270000)、which indicated the number Flyvan chose.The end-off-file is denoted by a single line containing the number-1.
 
 
Output
If you think the first player will win,please out put“I bet on Oregon Maple~”,else please out put“I bet on Graphe Skin~”.
 
 
Sample Input
2
-1
 
 
Sample Output
I bet on Oregon Maple~
この問題は一番目の勝ちだと思って、このまま書いてもいいですが、信じられないので、他の人の問題解決報告書を読みました.複雑です..水が多すぎます
#include<iostream>
#include<cstdio>
using namespace std;
int main()
{
    int n;
  while(~scanf("%d",&n))
  {
      if(n==-1)
         break;
      else
         printf("I bet on Oregon Maple~
"); } return 0; }