摘要:
大水题一道。纯模拟代码才60行。 1 #include <cstdio> 2 using namespace std; 3 4 int pile[14][5], open[13]; 5 6 inline bool ban(char c) { 7 if(c <= '9' && c >= '0') re 阅读全文
摘要:
这题有人用毒瘤的高斯消元做,也有人DFS,BFS,还有人证明性质然后直接计算,而我选择了最暴力的方法: 2^16枚举! 一算复杂度发现最坏情况是65536×16×4,无压力...... 秒A 1 #include <cstdio> 2 using namespace std; 3 4 bool a[ 阅读全文