B. The Best Gift Emily's birthday is next week and Jack has decided to buy a present for her. He knows she loves books so he goes to the local booksh....
分类:
其他好文 时间:
2015-12-20 01:51:17
阅读次数:
192
http://www.codewars.com/kata/55c423ecf847fbcba100002b/train/csharpOh no, Timmy's received some hate mail recently but he knows better. Help timmy fix ...
分类:
其他好文 时间:
2015-12-18 10:23:37
阅读次数:
120
The interactive pseudo-classes for links (and buttons) allow us to make sure the user knows what elements on the page are interactive and that they ca...
分类:
Web程序 时间:
2015-12-18 06:55:24
阅读次数:
138
0x00:序言Two strangers fell in love,Only one knows it wasn’t by chance.To the searching tags, you may well fall in love with http:// 10.2.26.67Github地址:...
分类:
其他好文 时间:
2015-12-03 22:59:04
阅读次数:
279
More DivisorsTime Limit: 2 Seconds Memory Limit: 65536 KBEverybody knows that we use decimal notation, i.e. the base of our notation is 10. Historians...
分类:
其他好文 时间:
2015-12-03 22:53:40
阅读次数:
224
题目大意:给出一个地图,已知每两个点之间的最短路径,求原图最少有多少条边。
特别注意:
1、这个图是有向图。
2、可以找到原图就是输出最少有多少条边,否则输出-1。
3、用floyd找到最短路以及进行更新。
4、先得到边,再通过floyd去掉一些边,举个例子说:1->2的最短路为5,2->3的最短路为3,1->3的最短路为12,很明显1->2->3的3的路径,所以1->3这条边可以去掉。
5、注意输出有个Case,避免wa。
Problem Description
Everyone knows ho...
分类:
其他好文 时间:
2015-11-24 21:18:43
阅读次数:
240
A. Kefa and First StepsKefa decided to make some money doing business on the Internet for exactly n days. He knows that on the i-th day (1?≤?i?≤?n) he...
分类:
其他好文 时间:
2015-11-23 13:29:26
阅读次数:
199
C. Vasya and BasketballVasya follows a basketball game and marks the distances from which each team makes a throw. He knows that each successful throw...
分类:
编程语言 时间:
2015-11-19 23:53:14
阅读次数:
306
一、语义上:关联关系:A has a(knows a) B依赖关系:A uses a B二、代码上:关联关系:package facade;/** * @author Administrator * @version 1.0 * @created 11-十月-2015 18:42:05 */publ...
分类:
其他好文 时间:
2015-10-11 19:32:24
阅读次数:
228
CountingThe ProblemGustavo knows how to count, but he is now learning how write numbers. As he is a very good student, he already learned 1, 2, 3 and ...
分类:
其他好文 时间:
2015-10-05 10:28:01
阅读次数:
254