随笔分类 -  不太懂

摘要:题意:判断两点是否在线段的同一方,点不能在线上。题解:模拟一下DescriptionA determined army on a certain border decided to enumerate the coordinates in its patrol in a way to make it... 阅读全文
posted @ 2015-02-09 22:02 江豚 阅读(130) 评论(0) 推荐(0)
摘要:题意:几个字母比大小的组合数,注意相同字母还有符号题解:动态规划DescriptionBackgroundConsider a specific set of comparable objects. Between two objects a and b, there exits one of th... 阅读全文
posted @ 2015-02-09 21:39 江豚 阅读(154) 评论(0) 推荐(0)
摘要:题意:#转/*玩一个游戏,每轮有一个人得分,或减分,当所有轮完成后,找出分数最高的那个人,如果是多个人,找出那些人中第一个达到最高分或更高的人。先保存好每个人的分数,记录下究竟有那几个人会得奖,再次遍历所有回合,找出第一个高于等于那个分数的且最终会得奖的人。*/Sample InputInput3m... 阅读全文
posted @ 2015-02-09 15:15 江豚 阅读(117) 评论(0) 推荐(0)
摘要:题解:dpDescriptionAlex doesn't like boredom. That's why whenever he gets bored, he comes up with games. One long winter evening he came up with a game a... 阅读全文
posted @ 2015-02-03 20:53 江豚 阅读(154) 评论(0) 推荐(0)
摘要://我觉得这题好像跟我理解的不太一样啊T ^ T,有点郁闷DescriptionThere is a given string S consisting of N symbols. Your task is to find the number of ordered pairs of integer... 阅读全文
posted @ 2015-02-02 09:59 江豚 阅读(231) 评论(0) 推荐(0)