摘要:
三连击 分析:模拟大水题。打表也行。注意输出顺序即可。 #include<iostream> #include<algorithm> #include<cstring> using namespace std; const int maxn=10; bool book[maxn]; int main 阅读全文
posted @ 2017-09-03 21:29
lqs2002
阅读(1084)
评论(0)
推荐(0)
摘要:
棋盘问题 分析:相对于现在几年的第一题要难一点。乘法原理模拟下。因为n,m<=100,我用的O(n^2)完全也没问题,O(n)的的话用等差数列优化下就行了。 #include<iostream> #include<algorithm> using namespace std; int main(){ 阅读全文
posted @ 2017-09-03 19:07
lqs2002
阅读(629)
评论(0)
推荐(0)

浙公网安备 33010602011771号