摘要: 题意:统计字母的个数,以“*”号输出 1 #include 2 #include 3 #include 4 int main() 5 { 6 char str[4][100]; 7 char map[100][100]; 8 int i,j; 9 int a[100]... 阅读全文
posted @ 2015-02-09 22:26 江豚 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 题意:判断两点是否在线段的同一方,点不能在线上。题解:模拟一下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 江豚 阅读(124) 评论(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 江豚 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 题意:#转/*玩一个游戏,每轮有一个人得分,或减分,当所有轮完成后,找出分数最高的那个人,如果是多个人,找出那些人中第一个达到最高分或更高的人。先保存好每个人的分数,记录下究竟有那几个人会得奖,再次遍历所有回合,找出第一个高于等于那个分数的且最终会得奖的人。*/Sample InputInput3m... 阅读全文
posted @ 2015-02-09 15:15 江豚 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 题意:一段数字,逆置其中两个使其递增DescriptionBeing a programmer, you like arrays a lot. For your birthday, your friends have given you an array a consisting of ndisti... 阅读全文
posted @ 2015-02-09 09:20 江豚 阅读(167) 评论(0) 推荐(0) 编辑