1218专题

开灯问题 —— POJ 1218 THE DRUNK JAILER

对应POJ 题目:点击打开链接 THE DRUNK JAILER Time Limit: 1000MS Memory Limit: 10000KTotal Submissions: 24831 Accepted: 15569 Description A certain prison contains a long hall of n cells, each right n

1218:取石子游戏

通过代码: #include <bits/stdc++.h>using namespace std;int a, b;bool f(int _a, int _b) {if(_a < _b) swap(_a, _b); if(_a / _b >= 2 || _b == 0) return true;else return !f(_a - _b, _b);}int main() {whil