摘要: 基本转于 http://www.cnblogs.com/dennisit/p/3346228.html 1.在pom.xml添加maven依赖 2.创建实体类 1 package org.dennisit.entity; 2 3 public class Medicine { 4 private I 阅读全文
posted @ 2016-10-21 21:31 江豚 阅读(305) 评论(0) 推荐(0) 编辑
摘要: 题意:给出两组数字,第二组数字代表第一组数字中的第几位。求从那一位开始,后面不同的数的个数DescriptionSereja has an arraya, consisting ofnintegersa1,a2,...,an. The boy cannot sit and do nothing, h... 阅读全文
posted @ 2015-02-12 19:50 江豚 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 题意:ekjfkj=output 依此解开密码,得到题意求第n位(本身是素数,同时反过来也是素数的数)题解:打表注意:数组开大,反过来的数不能是自己本身Descriptionqd ucyhf yi q fhycu dkcruh mxeiu huluhiu yi q tyvvuhudj fhycu d... 阅读全文
posted @ 2015-02-12 19:46 江豚 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 题意:给出一组数字,得到区间[1,a1],[a1+1,a1+a2],[a1+a2+1,a1+a2+a3].....再给出一组数字,求这些数字属于第几个区间注意:记得数组开大,容易超时DescriptionIt is lunch time for Mole. His friend, Marmot, p... 阅读全文
posted @ 2015-02-12 19:40 江豚 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 题解:类似于最大上升子序列Iahub got bored, so he invented a game to be played on paper.He writesnintegersa1, a2, ..., an. Each of those integers can be either 0 or... 阅读全文
posted @ 2015-02-10 18:50 江豚 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 题意:给位数和位数和 求符合要求的最大值和最小值//想法都有了,可是却没有做粗来(你484傻啊⁽⁽ ◟(눈_눈)◞ ⁾⁾)DescriptionYou have a positive integermand a non-negative integers. Your task is to find ... 阅读全文
posted @ 2015-02-10 18:47 江豚 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 题意:统计字母的个数,以“*”号输出 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) 编辑