摘要:
一开始看到题还以为要DFS还是BFS,后来发现完全不用。排个序,然后看看大小王能不能弥补缺口就行,但后来又发现还要排除有相同大小牌的情况。#include #include #include using namespace std; int main() { int n; while (cin >> n && n != 0) { vector cards; int kingCount = 0; while (n--) { int x; cin >> x; if (x == 0... 阅读全文
posted @ 2013-11-03 22:24
阿牧遥
阅读(139)
评论(0)
推荐(0)

浙公网安备 33010602011771号