04 2015 档案

摘要:Problem Description A number whose only prime factors are 2,3,5 or 7 is called a humble number. The sequence 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 1... 阅读全文
posted @ 2015-04-27 23:51 martinue 阅读(110) 评论(0) 推荐(0)
摘要:Problem Description JGShining's kingdom consists of 2n(n is no more than 500,000) small cities which are located in two parallel lines. Half of ... 阅读全文
posted @ 2015-04-27 21:11 martinue 阅读(153) 评论(0) 推荐(0)
摘要:description 给出一个整数N,将N表示为2个整数i j的平方和(i <= j),如果有多种表示,按照i的递增序输出。例如:N = 130,130 = 3^2 + 11^2 = 7^2 + 9^2 (注:3 11同11 3算1种) input ... 阅读全文
posted @ 2015-04-23 00:38 martinue 阅读(476) 评论(0) 推荐(0)
摘要:description 有一个包含n+2个元素的序列(a[0],a[1],…,a[n+1])。我们知道,对于任意的i(i=1,2,...,n),满足a[i]=(a[i-1]+a[i+1])/2-c[i]。给定a[0],a[n+1],c[0],c[1],...c[n],你的任务是... 阅读全文
posted @ 2015-04-16 16:44 martinue 阅读(176) 评论(0) 推荐(0)