随笔分类 - 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
阅读全文
摘要:链接:http://codeforces.com/contest/401/problem/D 题意:给出一个数字num和m,问通过重新排列num中的各位数字中有多少个数(mod m)=0,直接枚举全排列肯定不行,可以用状压dp来搞.. dp[S][k]表示选了num中的S且(mod m)=k的方案种
阅读全文
摘要:F. Xor-Pathstime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere is a rectangul...
阅读全文
摘要:E. Military Problemtime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputIn this probl...
阅读全文
摘要: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
阅读全文
摘要:D. Two Strings Swapstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are give...
阅读全文
摘要:C. Three Parts of the Arraytime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou ar...
阅读全文
摘要:B. Polycarp's Practicetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputPolycarp i...
阅读全文
摘要:A. Adjacent Replacementstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputMishka go...
阅读全文
摘要:F. Isomorphic Stringstime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are giv...
阅读全文
摘要:G. Team Playerstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere are nn play...
阅读全文
摘要: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
阅读全文
摘要: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...
阅读全文
摘要:B. Light It Uptime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputRecently, you bough...
阅读全文
摘要:A. Codehorses T-shirtstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputCodehorses...
阅读全文
摘要:F. Cards and Joytime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere are nn pla...
阅读全文
摘要:E. Reachability from the Capitaltime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard output...
阅读全文
摘要:D. Equalize the Remainderstime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou ar...
阅读全文
摘要:C. Alphabetic Removalstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are gi...
阅读全文
摘要:time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputA string ss of length nn can be e...
阅读全文

浙公网安备 33010602011771号