07 2016 档案

摘要:P is a permutation of the integers from 1 to N(index starting from 1).Here is the code of Bubble Sort in C++. After the sort, the array is in increasi 阅读全文
posted @ 2016-07-29 09:08 大领主 阅读(352) 评论(0) 推荐(0)
摘要:Bo is a "Life Winner".He likes playing chessboard games with his girlfriend G.The size of the chessboard is N×M.The top left corner is numbered(1,1) a 阅读全文
posted @ 2016-07-28 10:47 大领主 阅读(247) 评论(0) 推荐(0)
摘要:Mr Wang wants some boys to help him with a project. Because the project is rather complex, the more boys come, the better it will be. Of course there 阅读全文
posted @ 2016-07-27 11:25 大领主 阅读(213) 评论(0) 推荐(0)
摘要:Professor Zhang draws n points on the plane, which are conveniently labeled by 1,2,...,n. The i-th point is at (xi,yi). Professor Zhang wants to know 阅读全文
posted @ 2016-07-26 09:46 大领主 阅读(146) 评论(0) 推荐(0)
摘要:题意就是让0号和n+1号主机通信,通过(proxy)代理服务器进行中转 当0号和n+1号直接相连且延时是最短的,则输出0,(注意是最短延时) 当0号和n+1号主机无法通过任何方式通信,则输出-1 当0号和n+1号主机可以通过代理服务器相连且有多条路径,则在这多条路径中选出和0号主机直接相连的最小代理 阅读全文
posted @ 2016-07-18 15:23 大领主 阅读(248) 评论(0) 推荐(0)