2016年10月16日

CodeForces 731C C - Socks 并查集

摘要: Description Arseniy is already grown-up and independent. His mother decided to leave him alone for m days and left on a vacation. She have prepared a 阅读全文

posted @ 2016-10-16 23:42 stupid_one 阅读(850) 评论(2) 推荐(0) 编辑

Codeforces Round #376 (Div. 2) F. Video Cards 数学 & 暴力

摘要: http://codeforces.com/contest/731/problem/F 注意到一个事实,如果你要找一段区间中(从小到大的),有多少个数是能整除左端点L的,就是[L, R]这样。那么,很明显,把这个区间分段。分成[L, 2 * L - 1],因为这段区间中,都不大于等于L的两倍,这样就 阅读全文

posted @ 2016-10-16 23:36 stupid_one 阅读(225) 评论(0) 推荐(0) 编辑

HDU 1027 G - Can you answer these queries?

摘要: http://acm.hdu.edu.cn/showproblem.php?pid=4027 Can you answer these queries? Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 65768/65768 K (Java/ 阅读全文

posted @ 2016-10-16 14:34 stupid_one 阅读(218) 评论(0) 推荐(0) 编辑

导航