
codeforces
望舒丶
no regret voyage
展开
-
Codeforces dfs
D. Sleepy Gametime limit per test2 secondsmemory limit per test256 megabytesPetya and Vasya arranged a game. The game runs by the following rules. Players have a directed graph consisting of n verti...原创 2018-03-09 21:12:58 · 375 阅读 · 0 评论 -
codeforces 999D 贪心+二分查找
D. Equalize the Remainderstime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given an array consisting of nn integers a1,a2,…,ana1,a2,…,an, a...原创 2018-06-25 20:24:17 · 785 阅读 · 0 评论 -
codeforces 494(Div3) 1003 F.Abbreviation hash+暴力
F. Abbreviationtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given a text consisting of nn space-separated words. There...原创 2018-07-18 10:25:50 · 497 阅读 · 0 评论 -
codeforces 1005F dfs+bfs+思维
F. Berland and the Shortest Pathstime limit per test5 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere are nn cities in Berland. Some pairs of cities are connecte...原创 2018-07-12 11:41:43 · 480 阅读 · 0 评论 -
codeforces 1029D Concatenated Multiples 预处理+二分
D. Concatenated Multiplestime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given an array aa , consisting of nn positive i...原创 2018-08-29 10:41:22 · 434 阅读 · 2 评论 -
codeforce 1076D Edge Deletion 最短路+搜索+dij标记在队
D. Edge Deletiontime limit per test2.5 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given an undirected connected weighted graph consistin...原创 2018-11-15 15:52:46 · 251 阅读 · 0 评论 -
codeforces1090D 思维题
D. Similar Arraystime limit per test1 secondmemory limit per test512 megabytesinputstandard inputoutputstandard outputVasya had an array of nn integers, each element of the array was...原创 2018-12-10 16:00:22 · 480 阅读 · 0 评论 -
codeforces 1091D New Year and the Permutation Concatenation 组合数
D. New Year and the Permutation Concatenationtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputLet nn be an integer. Consider all ...原创 2018-12-31 11:47:08 · 585 阅读 · 0 评论