排序:
默认
按更新时间
按访问量
RSS订阅

[CodeForces-1084D][补题][树形DP(裸)]

题目是说有很多个城市,到达每个城市都可以获得相应的燃油,然后去往另外一个城市要消耗相应的燃油,不限制起点或者终点,怎么样才能获得最多的燃油? 题目第一行先输入一个n代表城市个数,然后接下来一行代表每个城市的获得燃油量,然后n-1行的路径和耗油量。 这道题使用树形DP算法,dfs搜索,一开始比较...

2018-12-16 11:35:03

阅读数 17

评论数 0

[2018-4-27]BNUZ套题比赛div2 B【补题】

Gleb ordered pizza home. When the courier delivered the pizza, he was very upset, because several pieces of sausage lay on the crust, and he does not...

2018-04-27 22:06:07

阅读数 30

评论数 0

[2018-4-20]BNUZ套题比赛div2 B 【补题】

Mike and some bears are playing a game just for fun. Mike is the judge. All bears except Mike are standing in an n × m grid, there's exactly one bear...

2018-04-21 10:41:41

阅读数 31

评论数 0

[2018-4-20]BNUZ套题比赛div2 A【补题】

CodeForces - 548AWhile Mike was walking in the subway, all the stuff in his back-bag dropped on the ground. There were several fax messages among the...

2018-04-21 10:34:56

阅读数 31

评论数 0

2018-BNUZ-ACM-GDCPC选拔赛(耻辱赛)D 【补题】

A. Mahmoud and Longest Uncommon Subsequencetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputWhil...

2018-04-15 22:10:41

阅读数 49

评论数 0

2018-BNUZ-ACM-GDCPC选拔赛(耻辱赛)E 【补题】

B. Mahmoud and a Triangletime limit per test 2 secondsmemory limit per test 256 megabytesinput standard inputoutput standard outputMahmoud has n line...

2018-04-15 21:52:39

阅读数 386

评论数 0

[2018-4-8]BNUZ套题比赛div2 E - A Prosperous Lot 【补题】

题目链接:CodeForces - 934B Apart from Nian, there is a daemon named Sui, which terrifies children and causes them to become sick. Parents give their chil...

2018-04-09 21:54:54

阅读数 30

评论数 0

[2018-4-8]BNUZ套题比赛div2 C Subsequence Counting【补题】

Pikachu had an array with him. He wrote down all the non-empty subsequences of the array on paper. Note that an array of size n has2n - 1 non-empty s...

2018-04-09 18:21:36

阅读数 47

评论数 0

3月23号B题Months and Years(补题)

题目链接(vj):https://vjudge.net/problem/CodeForces-899B思路:用数组存储输入数据,离线打两个表,一个闰年一个平年,当闰年读取过后将闰年的二月改为28天,依次比较即可。这道题真是zz了没有做出来,一开始检测月数的语句放错了,导致  1   29过不了。#...

2018-03-26 13:26:02

阅读数 112

评论数 0

提示
确定要删除当前文章?
取消 删除
关闭
关闭