摘要: Problem GTriangle CountingInput:Standard InputOutput:Standard OutputYou are givennrods of length 1, 2…, n. You have to pick any 3 of them & build a triangle. How many distinct triangles can you make? Note that, two triangles will be considered different if they have at least 1 pair of arms with 阅读全文
posted @ 2013-03-25 21:14 Jack Ge 阅读(521) 评论(0) 推荐(0) 编辑
摘要: Problem AChess QueenInput:Standard InputOutput:Standard OutputYou probably know how the game of chess is played and how chess queen operates. Two chess queens are in attacking position when they are on same row, column or diagonal of a chess board. Suppose two such chess queens (one black and the ot 阅读全文
posted @ 2013-03-25 20:59 Jack Ge 阅读(353) 评论(0) 推荐(0) 编辑
摘要: Matrix Swapping IITime Limit: 9000/3000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 793Accepted Submission(s): 537 Problem DescriptionGiven an N * M matrix with each entry equal to 0 or 1. We can find some rectangles in the matrix whose entries are all 1, and we de 阅读全文
posted @ 2013-03-25 15:07 Jack Ge 阅读(341) 评论(0) 推荐(0) 编辑
摘要: Largest SubmatrixTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 839Accepted Submission(s): 407 Problem DescriptionNow here is a matrix with letter 'a','b','c','w','x','y','z' and you can cha 阅读全文
posted @ 2013-03-25 14:21 Jack Ge 阅读(356) 评论(0) 推荐(0) 编辑