上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 55 下一页
摘要: E. Number With The Given Amount Of Divisors time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard out 阅读全文
posted @ 2016-08-21 17:11 jhz033 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 1060 最复杂的数 基准时间限制:1 秒 空间限制:131072 KB 把一个数的约数个数定义为该数的复杂程度,给出一个n,求1-n中复杂程度最高的那个数。 例如:12的约数为:1 2 3 4 6 12,共6个数,所以12的复杂程度是6。如果有多个数复杂度相等,输出最小的。 把一个数的约数个数定义 阅读全文
posted @ 2016-08-21 16:26 jhz033 阅读(346) 评论(0) 推荐(0) 编辑
摘要: A. Brain's Photos time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Small, but very brave, 阅读全文
posted @ 2016-08-21 01:14 jhz033 阅读(305) 评论(0) 推荐(0) 编辑
摘要: Hillan and the girl Time Limit: 12000/6000 MS (Java/Others) Memory Limit: 524288/524288 K (Java/Others) Problem Description “WTF! While everyone has h 阅读全文
posted @ 2016-08-20 12:05 jhz033 阅读(231) 评论(0) 推荐(0) 编辑
摘要: 2301: [HAOI2011]Problem b Description 对于给出的n个询问,每次求有多少个数对(x,y),满足a≤x≤b,c≤y≤d,且gcd(x,y) = k,gcd(x,y)函数为x和y的最大公约数。 Input 第一行一个整数n,接下来n行每行五个整数,分别表示a、b、c、 阅读全文
posted @ 2016-08-20 10:16 jhz033 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 1101: [POI2007]Zap Description FGD正在破解一段密码,他需要回答很多类似的问题:对于给定的整数a,b和d,有多少正整数对x,y,满足x<=a,y<=b,并且gcd(x,y)=d。作为FGD的同学,FGD希望得到你的帮助。 FGD正在破解一段密码,他需要回答很多类似的问 阅读全文
posted @ 2016-08-20 09:50 jhz033 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 1289 大鱼吃小鱼 题目来源: Codility 基准时间限制:1 秒 空间限制:131072 KB 有N条鱼每条鱼的位置及大小均不同,他们沿着X轴游动,有的向左,有的向右。游动的速度是一样的,两条鱼相遇大鱼会吃掉小鱼。从左到右给出每条鱼的大小和游动的方向(0表示向左,1表示向右)。问足够长的时间 阅读全文
posted @ 2016-08-19 15:52 jhz033 阅读(183) 评论(0) 推荐(0) 编辑
摘要: Harmonic Number (II) Description I was trying to solve problem '1234 - Harmonic Number', I wrote the following code long long H( int n ) { long long r 阅读全文
posted @ 2016-08-18 20:32 jhz033 阅读(149) 评论(0) 推荐(0) 编辑
摘要: GCD Time Limit: 6000/3000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 9765 Accepted Submission(s): 3652 Problem Des 阅读全文
posted @ 2016-08-18 13:24 jhz033 阅读(144) 评论(0) 推荐(0) 编辑
摘要: n!的长度为 ll ans = log10(2*pi*n)/2 + n*(log10(n/exp(1.0)))+1; n!的长度为 ll ans = log10(2*pi*n)/2 + n*(log10(n/exp(1.0)))+1; 阅读全文
posted @ 2016-08-17 11:20 jhz033 阅读(134) 评论(0) 推荐(0) 编辑
上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 55 下一页