随笔分类 -  UVA系列题目之训练指南

摘要: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 阅读(533) 评论(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 阅读(358) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示