Fork me on GitHub
摘要: 题见洛谷#include#include#include#include#include#include#define LL long longusing namespace std;bool lief[10][10],hangf[10][10],gef[10][10];int a... 阅读全文
posted @ 2017-02-07 16:39 primes 阅读(224) 评论(0) 推荐(0)
摘要: 题见洛谷位运算版(设计巧妙,需要回顾,加深理解)#include#include#include#include#include#include#includeusing namespace std;int a[20];int ans=0,uplimit,n;void print(... 阅读全文
posted @ 2017-02-07 15:06 primes 阅读(209) 评论(0) 推荐(0)
摘要: #include#include#include#include#include#includeusing namespace std;int ans[200][200];int tall[200][200];int dx[]={0,1,-1,0,0};int dy[]={0,0,... 阅读全文
posted @ 2017-02-07 11:20 primes 阅读(138) 评论(0) 推荐(0)
摘要: 题见洛谷 带有技巧的搜索,用到杨辉三角形 不难看出 第几个(k)拆的数(虽说并不是拆的),系数为杨辉三角第n行,第k列的数字#include#include#include#include#include#includeusing namespace std;int n,sum... 阅读全文
posted @ 2017-02-07 09:18 primes 阅读(237) 评论(0) 推荐(0)