代码改变世界

随笔档案-2012年3月10日

poj 3414 Pots ----BFS 最短路和路径

2012-03-10 16:40 by java环境变量, 284 阅读, 收藏,
摘要: PotsTime Limit:1000MSMemory Limit:65536KTotal Submissions:6222Accepted:2614Special JudgeDescriptionYou are given two pots, having the volume ofAandBliters respectively. The following operations can be performed:FILL(i) fill the poti(1 ≤i≤ 2) from the tap;DROP(i) empty the potito the drain;POUR(i,j) 阅读全文

2676_Sudoku

2012-03-10 01:09 by java环境变量, 330 阅读, 收藏,
摘要: SudokuTime Limit:2000MSMemory Limit:65536KTotal Submissions:9679Accepted:4791Special JudgeDescriptionSudoku is a very simple task. A square table with 9 rows and 9 columns is divided to 9 smaller squares 3x3 as shown on the Figure. In some of the cells are written decimal digits from 1 to 9. The oth 阅读全文

2488_A Knight's Journey

2012-03-10 00:15 by java环境变量, 277 阅读, 收藏,
摘要: A Knight's JourneyTime Limit:1000MSMemory Limit:65536KTotal Submissions:18356Accepted:6181DescriptionBackgroundThe knight is getting bored of seeing the same black and white squares again and again and has decided to make a journeyaround the world. Whenever a knight moves, it is two squares in o 阅读全文