随笔分类 -  OJ-CodeForces

摘要:You are given an array aa consisting of nn integers, and qq queries to it. ii-th query is denoted by two integers lili and riri. For each query, you h 阅读全文
posted @ 2018-08-15 12:20 StarHai 阅读(370) 评论(0) 推荐(0)
摘要:链接:http://codeforces.com/contest/401/problem/D 题意:给出一个数字num和m,问通过重新排列num中的各位数字中有多少个数(mod m)=0,直接枚举全排列肯定不行,可以用状压dp来搞.. dp[S][k]表示选了num中的S且(mod m)=k的方案种 阅读全文
posted @ 2018-07-29 20:21 StarHai 阅读(216) 评论(0) 推荐(0)
摘要:F. Xor-Pathstime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere is a rectangul... 阅读全文
posted @ 2018-07-29 19:54 StarHai 阅读(346) 评论(0) 推荐(0)
摘要:E. Military Problemtime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputIn this probl... 阅读全文
posted @ 2018-07-18 00:57 StarHai 阅读(299) 评论(0) 推荐(0)
摘要:E. Military Problem time limit per test 3 seconds memory limit per test 256 megabytes input standard input output standard output In this problem you 阅读全文
posted @ 2018-07-18 00:57 StarHai 阅读(313) 评论(0) 推荐(0)
摘要:D. Two Strings Swapstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are give... 阅读全文
posted @ 2018-07-18 00:54 StarHai 阅读(432) 评论(0) 推荐(0)
摘要:C. Three Parts of the Arraytime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou ar... 阅读全文
posted @ 2018-07-18 00:49 StarHai 阅读(345) 评论(0) 推荐(0)
摘要:B. Polycarp's Practicetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputPolycarp i... 阅读全文
posted @ 2018-07-18 00:46 StarHai 阅读(395) 评论(0) 推荐(0)
摘要:A. Adjacent Replacementstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputMishka go... 阅读全文
posted @ 2018-07-18 00:42 StarHai 阅读(331) 评论(0) 推荐(0)
摘要:F. Isomorphic Stringstime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are giv... 阅读全文
posted @ 2018-07-09 02:13 StarHai 阅读(348) 评论(0) 推荐(0)
摘要:G. Team Playerstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere are nn play... 阅读全文
posted @ 2018-07-09 02:11 StarHai 阅读(390) 评论(0) 推荐(0)
摘要:You are given an undirected graph with weighted edges. The length of some path between two vertices is the bitwise xor of weights of all edges belongi 阅读全文
posted @ 2018-07-09 01:59 StarHai 阅读(267) 评论(0) 推荐(0)
摘要:You are given an undirected graph with weighted edges. The length of some path between two vertices is the bitwise xor of weights of a... 阅读全文
posted @ 2018-07-09 01:59 StarHai 阅读(136) 评论(0) 推荐(0)
摘要:B. Light It Uptime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputRecently, you bough... 阅读全文
posted @ 2018-06-28 22:59 StarHai 阅读(386) 评论(0) 推荐(0)
摘要:A. Codehorses T-shirtstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputCodehorses... 阅读全文
posted @ 2018-06-28 22:57 StarHai 阅读(3367) 评论(0) 推荐(0)
摘要:F. Cards and Joytime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere are nn pla... 阅读全文
posted @ 2018-06-28 19:22 StarHai 阅读(344) 评论(0) 推荐(0)
摘要:E. Reachability from the Capitaltime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard output... 阅读全文
posted @ 2018-06-28 19:16 StarHai 阅读(389) 评论(0) 推荐(0)
摘要:D. Equalize the Remainderstime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou ar... 阅读全文
posted @ 2018-06-28 19:07 StarHai 阅读(435) 评论(0) 推荐(0)
摘要:C. Alphabetic Removalstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are gi... 阅读全文
posted @ 2018-06-28 19:00 StarHai 阅读(290) 评论(0) 推荐(0)
摘要:time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputA string ss of length nn can be e... 阅读全文
posted @ 2018-06-28 18:57 StarHai 阅读(329) 评论(0) 推荐(0)