标签:des style blog http java color
2 13 10000 0
Second win Second win First win
#include <iostream> #include <cstdio> #include <cstring> #include <vector> #include <string> #include <algorithm> #include <queue> #include <set> using namespace std; int n; set<int>fib; int main(){ long long a=2,b=3,c=5; fib.insert(2); fib.insert(3); long long end = (1<<31)-1; //cout<<end<<endl; while(c <= end){ fib.insert(c); a = b; b = c; c = a+b; } while(cin >> n && n){ if(fib.count(n)==0){ cout<<"First win"<<endl; }else{ cout<<"Second win"<<endl; } } return 0; }
标签:des style blog http java color
原文地址:http://blog.csdn.net/mowayao/article/details/37052977