并查集 Total Eclipse 题解: 官方题解。 自己看完题解的整理: 这个题目明显就是选一个连通块,然后减去这个连通块的最小值,所以变成0的节点要删除,就会分裂成多个连通块。 实现方法就是对b进行排序,从大到小放,每次排序遍历一次这个点 x 的所有的边,对于(x,y) ,如果y在x之前放进去
转载 2020-07-23 21:24:00
66阅读
2评论
Lesson10 – Start on MyLibrary ClassCreate MyLibrary Test JUnit testCreate testMyLibrary to test MyLibrary constructorC
原创 2022-06-29 16:22:45
31阅读
Lesson 08 – Add Person to Book ClassCreate a relationship between the Book class and the Person classTest getPerson methodCr
原创 2022-06-29 16:23:05
37阅读
偶然搜到Mark Dexter的这个免费视频(http://eclipsetutorial.sourceforge.net/tot\
原创 2022-06-30 14:22:04
46阅读
Lesson 15 – Finish MyLibrary MethodsCreate test for getAvailableBooksCreate getAvailableBooksCreate getUnavailableBoo
原创 2022-06-29 16:22:17
35阅读
Lesson 13 – Continue checkOut MethodTest checkOut, checkIn methodsFix compiler error – misplaced {}Add test f
原创 2022-06-29 16:22:24
37阅读
Lesson 12 – Create checkOut, checkIn MethodsCreate test for checkOut, checkIn methodsWrite checkout methodIntroduce if
原创 2022-06-29 16:22:31
49阅读
Lesson 09 – MyLibrary Class and ArrayListHow can we hold books, etc. in a collection?MyLibrary object to hold Person & Entry obj
原创 2022-06-29 16:22:58
41阅读
Lesson 07 – Create Book ClassCreate BookTest before creating Book classTest Book constructorCreate get and set methods1.
原创 2022-06-29 16:23:12
30阅读
Lesson 05 – JUnit Testing ContinuedTest Person class – part 2Create test methods for constructor, getName, an
原创 2022-06-29 16:23:37
38阅读
Lesson 04 – JUnit Testing in Eclipse, Part 1Create test source folderCreate Person Test classRun first JUnit test1. Scrap
原创 2022-06-29 16:23:54
29阅读
Lesson 02 – Add Methods To ClassIntroduce Eclipse Views and PerspectivesIntroduce Eclipse user interface – dra
原创 2022-06-29 16:24:04
44阅读
Lesson 16 – Create main Method and JAR FileIntroduce main methodWrite a main methodRun MyLibrary as Java applicationExport to JAR file and run from Windows在MyLibrar
原创 2022-06-29 16:22:03
53阅读
Lesson 14 – Finish checkOut MethodWrite getBooksForPerson methodIntroduce for each loopIntroduce logical ‘and’ operator
原创 2022-06-29 16:22:10
38阅读
Lesson 11 – Create first methods in MyLibrary classCreate test method for addBook, removeBook methodsCre
原创 2022-06-29 16:22:38
24阅读
Lesson 06 – Using Test-First Development in EclipseUse test-first approach to write the Person toString() methodMeth
原创 2022-06-29 16:23:19
35阅读
Lesson 03 – Use Eclipse ScrapbookIntroduce Eclipse ScrapbookIntroduce Java expressions, statements
原创 2022-06-29 16:23:48
56阅读
https://github.com/mono/moon
转载 2012-01-24 14:29:00
27阅读
2评论
问题描述 拜特兰有n个城市和m条双向道路。这些城市被标记为1,2,…,n,第i个城市的亮度是bi。 魔术师Sunset想和拜特兰开个玩笑,制造一个月全食,使每个城市的亮度变为零。Sunset可以执行以下操作任意次数: ·选择一个整数k(1≤k≤n)。 ·选择k个不同的城市c1,c2,…,ck(1≤c
转载 2020-09-17 16:05:00
41阅读
2评论
HDU 4348 To the moon
转载 2012-09-08 10:39:00
92阅读
2评论
  • 1
  • 2
  • 3
  • 4
  • 5