标签:AC 博弈 map break script main namespace desc content
1 #include<iostream> 2 #include<map> 3 using namespace std; 4 int main() 5 { 6 int fib[500]; 7 fib[0] = 1, fib[1] = 2; 8 for (int i = 2; i <= 70;i++) 9 fib[i] = fib[i - 1] + fib[i - 2]; 10 int n; 11 while (cin >> n&&n) 12 { 13 int mark = 0; 14 for (int i = 0; i <= 70; i++) { 15 if (fib[i] == n) mark = 1, cout << "Second win" << endl; 16 if (fib[i] > n) break; 17 } 18 if (!mark) cout << "First win" << endl; 19 } 20 21 return 0; 22 }
标签:AC 博弈 map break script main namespace desc content
原文地址:https://www.cnblogs.com/kangdong/p/9190901.html