2016年3月22日
摘要: 题目描述 Bobo has a directed graph G with n vertex labeled by 1,2,3,..n. Let D(i,j) be the number of edges from vertex i to vertex j on the shortest path. 阅读全文
posted @ 2016-03-22 11:29 Beserious 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 题目描述 Given an array of citations (each citation is a non-negative integer) of a researcher, write a function to compute the researcher's h-index. Acco 阅读全文
posted @ 2016-03-22 11:21 Beserious 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 由于全球变暖,岛国S的沿岸的海水不断上涨,形式岌岌可危。 S国的地图是由n*m个网格组成的,网格由.和#组成,#代表的区域是陆地,.和地图外面全是海水。 每天,海水将侵蚀相邻的陆地,即如果陆地与海水相邻的话,第二天就会变成海水。这里面的两块相邻表示两块之间公用一条边。 比如S国的地图是这样的: .. 阅读全文
posted @ 2016-03-22 11:13 Beserious 阅读(269) 评论(0) 推荐(0) 编辑
摘要: 题目描述 The Signals’ Day has passed for a few days. Numerous sales promotion campaigns on the shopping sites make us forget that 11.11 is the Signals’ Da 阅读全文
posted @ 2016-03-22 11:06 Beserious 阅读(373) 评论(0) 推荐(0) 编辑
  2016年3月12日
摘要: Description Pangzi recently realized that bitwise XOR operation is just an addition without carries. For example, when computing (1001)_2 XOR (1101)_2 阅读全文
posted @ 2016-03-12 13:48 Beserious 阅读(327) 评论(0) 推荐(0) 编辑
  2016年2月24日
摘要: D. Babaei and Birthday Cake time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output As you know, 阅读全文
posted @ 2016-02-24 10:38 Beserious 阅读(424) 评论(0) 推荐(0) 编辑
  2016年2月20日
摘要: 背景 小杉的幻想来到了经典日剧《求婚大作战》的场景里……他正在婚礼上看幻灯片,一边看着可爱的新娘长泽雅美,一边想,如果能再来一次就好了(-.-干嘛幻想这么郁闷的场景……)。 小杉身为新一代的山下智久,在虔诚地在心里呼喊了几千次以后,妖精终于出现了。 妖精说,我还是可以帮你回到这张照片的过去,让你再来 阅读全文
posted @ 2016-02-20 18:15 Beserious 阅读(481) 评论(0) 推荐(0) 编辑
  2016年2月17日
摘要: C. Graph and String time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output One day student Vasy 阅读全文
posted @ 2016-02-17 22:26 Beserious 阅读(323) 评论(0) 推荐(0) 编辑
  2016年2月16日
摘要: Clarke and MST Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 315 Accepted Submission(s): 176 Pr 阅读全文
posted @ 2016-02-16 20:43 Beserious 阅读(272) 评论(0) 推荐(0) 编辑
  2016年2月2日
摘要: A. Bulbs time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Vasya wants to turn on Christmas 阅读全文
posted @ 2016-02-02 13:29 Beserious 阅读(242) 评论(0) 推荐(0) 编辑