VJ题解
wz_e18
这个作者很懒,什么都没留下…
展开
-
Keylogger Gym - 101078I
Problem As a malicious hacker you are trying to steal your mother’s password, and therefore you have installed a keylogger on her PC (or Mac, so you like). You have a log from your mother typing the ...翻译 2018-08-29 21:26:32 · 155 阅读 · 0 评论 -
CSU - 1960 - 单源最大权路径
题目链接:1960: 单源最大权路径 Description 有一棵由N个结点构成的树,每一条边上都有其对应的权值。现在给定起点,求从该点出发的一条路径(至少有一条边)使得这条路径上的权值之和最大,并输出这个最大值。 Input 第一行一个正整数T,代表数据组数。每组数据第一行两个正整数n(2<=n<=10^5),s(1<=s<=n),分别表示树结点数目以及给定的起...翻译 2018-09-06 08:54:42 · 104 阅读 · 0 评论 -
POJ-1062 昂贵的聘礼
年轻的探险家来到了一个印第安部落里。在那里他和酋长的女儿相爱了,于是便向酋长去求亲。酋长要他用10000个金币作为聘礼才答应把女儿嫁给他。探险家拿不出这么多金币,便请求酋长降低要求。酋长说:"嗯,如果你能够替我弄到大祭司的皮袄,我可以只要8000金币。如果你能够弄来他的水晶球,那么只要5000金币就行了。"探险家就跑到大祭司那里,向他要求皮袄或水晶球,大祭司要他用金币来换,或者替他弄来其他的东西,...原创 2018-10-10 09:24:18 · 105 阅读 · 0 评论 -
POJ - 1797 Heavy Transportation
题目 Background Hugo Heavy is happy. After the breakdown of the Cargolifter project he can now expand business. But he needs a clever man who tells him whether there really is a way from the place his...翻译 2018-10-10 09:25:56 · 138 阅读 · 0 评论 -
Checkerboard
Byung is playing a game on her infinite checkerboard. The goal of the game is to move from a starting position (rs, cs) to a target position (rt, ct) using exactly x moves, where x is determined by a ...翻译 2018-10-10 09:27:03 · 850 阅读 · 0 评论