07 2017 档案

摘要:点击打开链接Oil DepositsTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 21383 Accepted Submission... 阅读全文 »
posted @ 2017-07-31 20:23 Veritas_des_Liberty 阅读(202) 评论(0) 推荐(0) 编辑
摘要:点击打开链接阶乘因式分解(一)时间限制:3000 ms | 内存限制:65535 KB难度:2描述给定两个数m,n,其中m是一个素数。将n(0int main(){ int s,n,m,sum; scanf("%d",&s); while(s--) { sum=0; scanf("%d%d"... 阅读全文 »
posted @ 2017-07-31 16:59 Veritas_des_Liberty 阅读(235) 评论(0) 推荐(0) 编辑
摘要:点击打开链接6174问题时间限制:1000 ms | 内存限制:65535 KB难度:2描述假设你有一个各位数字互不相同的四位数,把所有的数字从大到小排序后得到a,从小到大后得到b,然后用a-b替换原来这个数,并且继续操作。例如,从1234出发,依次可以得到4321-1234=3087、8730... 阅读全文 »
posted @ 2017-07-30 17:29 Veritas_des_Liberty 阅读(384) 评论(0) 推荐(0) 编辑
摘要:点击打开链接A sequence of N positive integers (10 #include#define MAX 100000usingnamespacestd;intmain(){int u;int sum[MAX+22];int ans;int n,s;scanf("%d",&u)... 阅读全文 »
posted @ 2017-07-27 16:20 Veritas_des_Liberty 阅读(306) 评论(0) 推荐(0) 编辑
摘要:点击打开链接管闲事的小明时间限制:4000 ms | 内存限制:65535 KB难度:2描述某校大门外长度为L的马路上有一排树,每两棵相邻的树之间的间隔都是1米。我们可以把马路看成一个数轴,马路的一端在数轴0的位置,另一端在L的位置;数轴上的每个整数点,即0,1,2,……,L,都种有一棵树。 ... 阅读全文 »
posted @ 2017-07-27 15:31 Veritas_des_Liberty 阅读(611) 评论(0) 推荐(0) 编辑
摘要:点击打开链接求转置矩阵问题时间限制:3000 ms | 内存限制:65535 KB难度:2描述求一个三行三列的转置矩阵。输入第一行一个整数n#includeusing namespace std;int main(){int i;cin>>i;while(i--){int a[3][3],b[3... 阅读全文 »
posted @ 2017-07-27 11:40 Veritas_des_Liberty 阅读(468) 评论(0) 推荐(0) 编辑
摘要:点击打开链接Your task is to calculate the sum of some integers. InputInput contains multiple test cases, and one case one line. Each case starts with an int... 阅读全文 »
posted @ 2017-07-24 22:37 Veritas_des_Liberty 阅读(231) 评论(0) 推荐(0) 编辑
摘要:点击打开链接Your task is to calculate the sum of some integers. InputInput contains an integer N in the first line, and then N lines follow. Each line start... 阅读全文 »
posted @ 2017-07-24 22:10 Veritas_des_Liberty 阅读(230) 评论(0) 推荐(0) 编辑
摘要:点击打开链接读入N名学生的成绩,将获得某一给定分数的学生人数输出。 Input测试输入包含若干测试用例,每个测试用例的格式为 第1行:N 第2行:N名学生的成绩,相邻两数字用一个空格间隔。 第3行:给定分数 当读到N=0时输入结束。其中N不超过1000,成绩分数为(包含)0到100之间的一个整数。 ... 阅读全文 »
posted @ 2017-07-23 20:45 Veritas_des_Liberty 阅读(336) 评论(0) 推荐(0) 编辑
摘要:点击打开链接还记得Gardon给小希布置的那个作业么?(上次比赛的1005)其实小希已经找回了原来的那张数表,现在她想确认一下她的答案是否正确,但是整个的答案是很庞大的表,小希只想让你把答案中最大的M个数告诉她就可以了。 给定一个包含N(N#include#includeusing namespac... 阅读全文 »
posted @ 2017-07-23 20:35 Veritas_des_Liberty 阅读(284) 评论(0) 推荐(0) 编辑
摘要:点击打开链接每天第一个到机房的人要把门打开,最后一个离开的人要把门关好。现有一堆杂乱的机房签 到、签离记录,请根据记录找出当天开门和关门的人。 Input测试输入的第一行给出记录的总天数N ( > 0 )。下面列出了N天的记录。 每天的记录在第一行给出记录的条目数M ( > 0 ),下面是M行,每行... 阅读全文 »
posted @ 2017-07-23 20:20 Veritas_des_Liberty 阅读(231) 评论(0) 推荐(0) 编辑

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