博客园 首页 私信博主 显示目录 隐藏目录 管理

随笔分类 -  起点

摘要:Time Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uDescription多项式的描述如下: 1 - 1/2 + 1/3 - 1/4 + 1/5 - 1/6 + ... 现在请你求出该多项式的前n项的和。Input输入数... 阅读全文
posted @ 2015-10-23 19:06 hfcnal 阅读(641) 评论(2) 推荐(0)
摘要:Time Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uDescription春天是鲜花的季节,水仙花就是其中最迷人的代表,数学上有个水仙花数,他是这样定义的: “水仙花数”是指一个三位数,它的各位数字的立方和等于其本身,比... 阅读全文
posted @ 2015-10-23 18:53 hfcnal 阅读(1694) 评论(0) 推荐(0)
摘要:Time Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uDescription数列的定义如下: 数列的第一项为n,以后各项为前一项的平方根,求数列的前m项的和。Input输入数据有多组,每组占一行,由两个整数n(n#incl... 阅读全文
posted @ 2015-10-23 18:37 hfcnal 阅读(319) 评论(0) 推荐(0)
摘要:Time Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uDescription统计给定的n个数中,负数、零和正数的个数。Input输入数据有多组,每组占一行,每行的第一个数是整数n(nint main(){ int m... 阅读全文
posted @ 2015-10-23 18:03 hfcnal 阅读(292) 评论(0) 推荐(0)
摘要:Time Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uDescription给定一段连续的整数,求出他们中所有偶数的平方和以及所有奇数的立方和。Input输入数据包含多组测试实例,每组测试实例包含一行,由两个整数m和n组成... 阅读全文
posted @ 2015-10-23 17:33 hfcnal 阅读(426) 评论(0) 推荐(0)
摘要:Time Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uDescription给你n个整数,求他们中所有奇数的乘积。Input输入数据包含多个测试实例,每个测试实例占一行,每行的第一个数为n,表示本组数据一共有n个,接着是n... 阅读全文
posted @ 2015-10-23 16:58 hfcnal 阅读(301) 评论(0) 推荐(0)
摘要:Time Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uDescription给定一个日期,输出这个日期是该年的第几天。Input输入数据有多组,每组占一行,数据格式为YYYY/MM/DD组成,具体参见sample inpu... 阅读全文
posted @ 2015-10-23 10:26 hfcnal 阅读(214) 评论(0) 推荐(0)
摘要:Time Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uDescription输入一个百分制的成绩t,将其转换成对应的等级,具体转换规则如下: 90~100为A; 80~89为B; 70~79为C; 60~69为D; 0~5... 阅读全文
posted @ 2015-10-23 09:13 hfcnal 阅读(412) 评论(0) 推荐(0)
摘要:Time Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uDescription求实数的绝对值。Input输入数据有多组,每组占一行,每行包含一个实数。Output对于每组输入数据,输出它的绝对值,要求每组数据输出一行,结果保... 阅读全文
posted @ 2015-10-23 09:07 hfcnal 阅读(269) 评论(0) 推荐(0)
摘要:Time Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uDescription输入三个字符后,按各字符的ASCII码从小到大的顺序输出这三个字符。Input输入数据有多组,每组占一行,有三个字符组成,之间无空格。Output... 阅读全文
posted @ 2015-10-23 08:58 hfcnal 阅读(404) 评论(2) 推荐(0)
摘要:Time Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uDescription根据输入的半径值,计算球的体积。Input输入数据有多组,每组占一行,每行包括一个实数,表示球的半径。Output输出对应的球的体积,对于每组输入... 阅读全文
posted @ 2015-10-15 19:55 hfcnal 阅读(316) 评论(0) 推荐(0)
摘要:Time Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uDescription输入两点坐标(X1,Y1),(X2,Y2),计算并输出两点间的距离。Input输入数据有多组,每组占一行,由4个实数组成,分别表示x1,y1,x2... 阅读全文
posted @ 2015-10-15 19:39 hfcnal 阅读(283) 评论(0) 推荐(0)
摘要:Time Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uDescriptionYour task is to calculate the sum of some integers.InputInput contains an... 阅读全文
posted @ 2015-10-15 19:27 hfcnal 阅读(1605) 评论(0) 推荐(0)
摘要:Time Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uDescriptionYour task is to Calculate a + b.InputThe input will consist of a series o... 阅读全文
posted @ 2015-10-15 19:19 hfcnal 阅读(461) 评论(0) 推荐(0)
摘要:Time Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uDescriptionYour task is to calculate the sum of some integers.InputInput contains mu... 阅读全文
posted @ 2015-10-15 19:16 hfcnal 阅读(464) 评论(0) 推荐(0)
摘要:Time Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uDescriptionYour task is to calculate the sum of some integers.InputInput contains an... 阅读全文
posted @ 2015-10-15 19:07 hfcnal 阅读(576) 评论(0) 推荐(0)
摘要:Time Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uDescriptionYour task is to Calculate the sum of some integers.InputInput contains mu... 阅读全文
posted @ 2015-10-15 19:01 hfcnal 阅读(1587) 评论(0) 推荐(0)
摘要:Time Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uDescriptionYour task is to Calculate a + b.InputInput contains multiple test cases. ... 阅读全文
posted @ 2015-10-14 21:03 hfcnal 阅读(712) 评论(0) 推荐(0)
摘要:Time Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uDescriptionYour task is to Calculate a + b.InputInput contains an integer N in the f... 阅读全文
posted @ 2015-10-14 20:56 hfcnal 阅读(1056) 评论(0) 推荐(0)
摘要:Time Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uDescriptionYour task is to Calculate a + b. Too easy?! Of course! I specially design... 阅读全文
posted @ 2015-10-14 20:49 hfcnal 阅读(1051) 评论(0) 推荐(0)