题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=3863
题意:
先手从左到右连接蓝点
后手从上到下连接红点
轮流进行,不能有交叉,谁最先连完谁赢。
因为图是对称的,所以先手一定有优势,先手必胜。
好吓人啊....
#include <iostream>
#include <cstdio>
#include <cstring>
#include <algorithm>
using namespace std;
int main() {
int n;
while(~scanf("%d", &n)) {
if(n == -1) break;
puts("I bet on Oregon Maple~");
}
return 0;
}