随笔分类 -  算法:水题

摘要:1061: 从三个数中找出最大的数Time Limit:1 SecMemory Limit:128 MBSubmit:154Solved:124[Submit][Status][Web Board]Description定义一个带参的宏(或者模板函数),从三个数中找出最大的数。Input3个短整型数... 阅读全文
posted @ 2014-06-10 10:36 Freecode# 阅读(451) 评论(0) 推荐(0) 编辑
摘要:1059: 判别该年份是否闰年Time Limit:1 SecMemory Limit:128 MBSubmit:222Solved:139[Submit][Status][Web Board]Description给年份year,定义一个宏,以判别该年份是否闰年。提示:宏名可以定义为LEAP_YE... 阅读全文
posted @ 2014-06-10 10:33 Freecode# 阅读(834) 评论(0) 推荐(0) 编辑
摘要:1064: 输入三个字符串,按由小到大的顺序输出Time Limit:1 SecMemory Limit:128 MBSubmit:471Solved:188[Submit][Status][Web Board]Description输入三个字符串,按由小到大的顺序输出。分别使用指针和引用方式实现两... 阅读全文
posted @ 2014-06-10 10:30 Freecode# 阅读(1153) 评论(0) 推荐(0) 编辑
摘要:1067: 顺序排号Time Limit:1 SecMemory Limit:128 MBSubmit:31Solved:16[Submit][Status][Web Board]Description有n人围成一圈,顺序排号。从第1个人开始报数(从1到3报数),凡报到3的人退出圈子,问最后留下的是... 阅读全文
posted @ 2014-06-09 12:32 Freecode# 阅读(284) 评论(0) 推荐(0) 编辑
摘要:LSSTime Limit:20000/10000 MS (Java/Others)Memory Limit:128000/64000 KB (Java/Others)SubmitStatisticNext ProblemProblem DescriptionTime flies, four yea... 阅读全文
posted @ 2014-06-09 11:37 Freecode# 阅读(305) 评论(0) 推荐(0) 编辑
摘要:Maya CalendarTime Limit:1000MSMemory Limit:10000KTotal Submissions:64795Accepted:19978DescriptionDuring his last sabbatical, professor M. A. Ya made a... 阅读全文
posted @ 2014-06-07 11:57 Freecode# 阅读(863) 评论(0) 推荐(1) 编辑
摘要:DNA SortingTime Limit:1000MSMemory Limit:10000KTotal Submissions:80832Accepted:32533DescriptionOne measure of ``unsortedness'' in a sequence is the nu... 阅读全文
posted @ 2014-06-05 15:15 Freecode# 阅读(2448) 评论(0) 推荐(0) 编辑
摘要:BiorhythmsTime Limit:1000MSMemory Limit:10000KTotal Submissions:110991Accepted:34541DescriptionSome people believe that there are three cycles in a pe... 阅读全文
posted @ 2014-06-04 22:06 Freecode# 阅读(3649) 评论(0) 推荐(2) 编辑
摘要:487-3279Time Limit:2000MSMemory Limit:65536KTotal Submissions:236746Accepted:41288DescriptionBusinesses like to have memorable telephone numbers. One ... 阅读全文
posted @ 2014-05-29 15:30 Freecode# 阅读(2143) 评论(0) 推荐(1) 编辑
摘要:Financial ManagementTime Limit:1000MSMemory Limit:10000KTotal Submissions:126087Accepted:55836DescriptionLarry graduated this year and finally has a j... 阅读全文
posted @ 2014-05-28 21:25 Freecode# 阅读(371) 评论(0) 推荐(0) 编辑
摘要:HangoverTime Limit:1000MSMemory Limit:10000KTotal Submissions:99450Accepted:48213DescriptionHow far can you make a stack of cards overhang a table? If... 阅读全文
posted @ 2014-05-28 09:16 Freecode# 阅读(494) 评论(0) 推荐(0) 编辑
摘要:2558: 游起来吧!超妹!Time Limit:1 SecMemory Limit:128 MBSubmit:7Solved:3[Submit][Status][Web Board]Description夏天到了,无聊的超妹跑到了落雪湖里抓鱼吃。结果,游到湖的正中 央时被湖边保安看到了,保安要抓住... 阅读全文
posted @ 2014-05-27 20:50 Freecode# 阅读(302) 评论(0) 推荐(0) 编辑
摘要:I Think I Need a HouseboatTime Limit:1000MSMemory Limit:10000KTotal Submissions:85149Accepted:36857DescriptionFred Mapper is considering purchasing so... 阅读全文
posted @ 2014-05-27 19:55 Freecode# 阅读(624) 评论(0) 推荐(0) 编辑
摘要:Higher MathTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2219Accepted Submission(s): 1219Problem... 阅读全文
posted @ 2014-05-24 13:04 Freecode# 阅读(343) 评论(0) 推荐(0) 编辑
摘要:算法训练 最小乘积(基本型) 时间限制:1.0s 内存限制:512.0MB问题描述 给两组数,各n个。 请调整每组数的排列顺序,使得两组数据相同下标元素对应相乘,然后相加的和最小。要求程序输出这个最小值。 例如两组数分别为:1 3 -5和-2 4 1 那么对应乘积取和的最小值应为: (... 阅读全文
posted @ 2014-05-22 17:58 Freecode# 阅读(2362) 评论(0) 推荐(0) 编辑
摘要:算法训练 Torry的困惑(基本型) 时间限制:1.0s 内存限制:512.0MB问题描述 Torry从小喜爱数学。一天,老师告诉他,像2、3、5、7……这样的数叫做质数。Torry突然想到一个问题,前10、100、1000、10000……个质数的乘积是多少呢?他把这个问题告诉老师。老师愣住了,... 阅读全文
posted @ 2014-05-22 17:54 Freecode# 阅读(2628) 评论(0) 推荐(0) 编辑
摘要:Energy ConversionTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4278Accepted Submission(s): 1024P... 阅读全文
posted @ 2014-05-16 22:13 Freecode# 阅读(454) 评论(0) 推荐(0) 编辑
摘要:亲和串Time Limit: 3000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 7298Accepted Submission(s): 3324Problem Descrip... 阅读全文
posted @ 2014-05-14 17:06 Freecode# 阅读(322) 评论(0) 推荐(0) 编辑
摘要:u Calculate eTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 28686Accepted Submission(s): 12762Pro... 阅读全文
posted @ 2014-04-27 19:41 Freecode# 阅读(1057) 评论(0) 推荐(0) 编辑
摘要:n a^o7 !Time Limit: 1000MS Memory limit: 65536K题目描述All brave and intelligent fighters, next you will step into a distinctive battleground which is ful... 阅读全文
posted @ 2014-04-27 15:54 Freecode# 阅读(277) 评论(0) 推荐(0) 编辑

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