摘要: D. Minimizationtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou've got array A, consisting of... 阅读全文
posted @ 2015-08-23 18:47 陈瑞宇 阅读(343) 评论(0) 推荐(0) 编辑
摘要: CNF 2 'In Boolean logic, a formula is in conjunctive normal form (CNF) or clausal normal form if it is a conjunction of clauses, where a clause is a ... 阅读全文
posted @ 2015-08-23 15:17 陈瑞宇 阅读(416) 评论(0) 推荐(0) 编辑
摘要: 一个合法的三角形的充要条件是a=b+c+r,很容易转化为rusing namespace std;typedef long long ll;ll cal(int a,int b,int c,int tl){ int r = (a-b-c+tl)>>1; if(rtl) r = tl; ... 阅读全文
posted @ 2015-08-23 12:31 陈瑞宇 阅读(357) 评论(0) 推荐(0) 编辑