
数学
文章平均质量分 71
hpuzsk
这个作者很懒,什么都没留下…
展开
-
leetcode400. 第 N 位数字
400. 第 N 位数字难度中等181在无限的整数序列1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, ...中找到第n位数字。注意:n是正数且在 32 位整数范围内(n < 231)。示例 1:输入:3输出:3示例 2:输入:11输出:0解释:第 11 位数字在序列 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, ... 里是 0 ,它是 10 的一部分。题目描述如上。做题思路要清晰,不要被情绪...原创 2021-09-28 16:26:47 · 243 阅读 · 0 评论 -
杭电1165
Eddy's research IITime Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3845 Accepted Submission(s): 1417Problem DescriptionAs is k原创 2015-10-28 21:42:19 · 512 阅读 · 0 评论 -
bz1968 1968: [Ahoi2005]COMMON 约数研究
1968: [Ahoi2005]COMMON 约数研究Time Limit: 1 Sec Memory Limit: 64 MBSubmit: 1412 Solved: 1072[Submit][Status][Discuss]DescriptionInput只有一行一个整数 N(0 Output只有一行输出,为整数M,即f(1)到f(N)的累加原创 2015-12-13 00:20:11 · 507 阅读 · 0 评论 -
杭电5595 GTW likes math
GTW likes mathTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 259 Accepted Submission(s): 129Problem DescriptionAfter atten原创 2015-12-13 14:40:36 · 411 阅读 · 0 评论 -
杭电5605 geometry
geometryTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 205 Accepted Submission(s): 155Problem DescriptionThere is a point P原创 2016-01-15 16:19:45 · 405 阅读 · 0 评论 -
杭电5505 GT and numbers
Problem DescriptionYou are given two numbers N and M.Every step you can get a new N in the way that multiply N by a factor of N.Work out how many steps can N be equal to M at least.If N can't be to M forever,print −1.原创 2015-12-05 13:25:00 · 434 阅读 · 0 评论 -
杭电5585 Numbers
There is a number N.You should output "YES" if N is a multiple of 2, 3 or 5,otherwise output "NO". InputThere are multiple test cases, no more than 1000 cases.For each case,the line contains a integer N.(0<N<1030) OutputFor each test case,output t原创 2015-12-04 13:53:21 · 405 阅读 · 0 评论 -
杭电5504 GT and sequence
You are given a sequence of N integers.You should choose some numbers(at least one),and make the product of them as big as possible.It guaranteed that **the absolute value of** any product of the numbers you choose in the initial sequence will not bigg原创 2015-12-04 16:58:51 · 408 阅读 · 0 评论 -
杭电5523 Game
GameTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 1202 Accepted Submission(s): 414Problem DescriptionXY is playing a game原创 2015-12-05 14:05:40 · 422 阅读 · 0 评论 -
杭电 4548 美素数
美素数Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 4756 Accepted Submission(s): 1634Problem Description 小明对数的研究比较热爱,一谈到数,脑子里原创 2015-12-05 17:37:09 · 380 阅读 · 0 评论 -
bzoj 1041: [HAOI2008]圆上的整点
1041: [HAOI2008]圆上的整点Time Limit: 10 Sec Memory Limit: 162 MBSubmit: 2838 Solved: 1238[Submit][Status][Discuss]Description求一个给定的圆(x^2+y^2=r^2),在圆周上有多少个点的坐标是整数。InputrOutput原创 2015-12-23 18:25:53 · 606 阅读 · 0 评论 -
杭电1998 奇数阶魔方
奇数阶魔方Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3212 Accepted Submission(s): 1708Problem Description一个 n 阶方阵的元素是1,2,...,原创 2015-12-13 21:27:26 · 698 阅读 · 0 评论 -
bz2005 2005: [Noi2010]能量采集 数学题
2005: [Noi2010]能量采集Time Limit: 10 Sec Memory Limit: 552 MBSubmit: 2494 Solved: 1475[Submit][Status][Discuss]Description栋栋有一块长方形的地,他在地上种了一种能量植物,这种植物可以采集太阳光的能量。在这些植物采集能量后,栋栋再使用一个能量汇集机器把这些植原创 2015-12-12 23:29:48 · 373 阅读 · 0 评论 -
杭电2058 The sum problem
The sum problemTime Limit: 5000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 19582 Accepted Submission(s): 5772Problem DescriptionGiven a s原创 2015-11-21 22:01:26 · 519 阅读 · 0 评论 -
杭电2715 Herd Sums
Herd SumsTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 771 Accepted Submission(s): 374Problem DescriptionThe cows in farmer原创 2015-11-21 22:06:22 · 415 阅读 · 0 评论 -
杭电2802F(N)
F(N)Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4073 Accepted Submission(s): 1430Problem DescriptionGiving the N, can y原创 2015-10-31 21:14:21 · 443 阅读 · 0 评论 -
杭电1597 find the nth digit
find the nth digitTime Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 9821 Accepted Submission(s): 2879Problem Description假设:S1原创 2015-11-22 17:45:05 · 490 阅读 · 1 评论 -
杭电5194DZY Loves Balls
DZY Loves BallsTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 748 Accepted Submission(s): 412Problem DescriptionThere are n原创 2015-11-17 13:46:47 · 399 阅读 · 0 评论 -
杭电1492 The number of divisors(约数) about Humble Numbers
The number of divisors(约数) about Humble NumbersTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3100 Accepted Submission(s): 1508P原创 2015-11-24 16:24:56 · 361 阅读 · 0 评论 -
杭电2803The MAX
The MAXTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2054 Accepted Submission(s): 890Problem DescriptionGiving N integers,原创 2015-11-01 16:40:09 · 381 阅读 · 0 评论 -
杭电1491 Octorber 21st
Octorber 21stTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3687 Accepted Submission(s): 2267Problem DescriptionHDU's 50th b原创 2015-11-24 16:33:05 · 364 阅读 · 0 评论 -
杭电1222 Wolf and Rabbit
Wolf and RabbitTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 6381 Accepted Submission(s): 3187Problem DescriptionThere is a原创 2015-11-17 20:24:17 · 525 阅读 · 0 评论 -
bzoj1192 [HNOI2006]鬼谷子的钱袋
1192: [HNOI2006]鬼谷子的钱袋Time Limit: 10 Sec Memory Limit: 162 MBSubmit: 2443 Solved: 1785[Submit][Status][Discuss]Description鬼谷子非常聪明,正因为这样,他非常繁忙,经常有各诸侯车的特派员前来向他咨询时政。有一天,他在咸阳游历的时候,朋友告诉他在咸阳最大原创 2015-12-11 22:13:32 · 381 阅读 · 0 评论 -
bzoj 1008: [HNOI2008]越狱
1008: [HNOI2008]越狱Time Limit: 1 Sec Memory Limit: 162 MBSubmit: 6235 Solved: 2658[Submit][Status][Discuss]Description监狱有连续编号为1...N的N个房间,每个房间关押一个犯人,有M种宗教,每个犯人可能信仰其中一种。如果相邻房间的犯人的宗教相同,就可能发生原创 2015-12-23 20:59:12 · 483 阅读 · 0 评论 -
bzoj1257: [CQOI2007]余数之和sum
1257: [CQOI2007]余数之和sumTime Limit: 5 Sec Memory Limit: 162 MBSubmit: 2787 Solved: 1278[Submit][Status][Discuss]Description给出正整数n和k,计算j(n, k)=k mod 1 + k mod 2 + k mod 3 + … + k mod n的值,其原创 2015-12-24 13:59:52 · 458 阅读 · 0 评论 -
杭电5640 King's Cake
King's CakeTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 835 Accepted Submission(s): 602Problem DescriptionIt is the king's原创 2016-03-31 21:35:55 · 520 阅读 · 0 评论 -
杭电5615 Jam's math problem
Jam's math problemTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 821 Accepted Submission(s): 390Problem DescriptionJam has a原创 2016-03-09 20:26:40 · 561 阅读 · 0 评论 -
杭电5630 Rikka with Chess
Rikka with ChessTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 521 Accepted Submission(s): 434Problem DescriptionYuta gives原创 2016-03-09 20:44:38 · 379 阅读 · 0 评论 -
杭电5655 CA Loves Stick
CA Loves StickTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others)Total Submission(s): 695 Accepted Submission(s): 245Problem DescriptionCA loves to原创 2016-04-04 19:25:52 · 441 阅读 · 0 评论 -
杭电1411 校庆神秘建筑
校庆神秘建筑Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 2061 Accepted Submission(s): 681Problem Description杭州电子科技大学即将迎来50周年的校庆,原创 2016-04-06 18:31:58 · 709 阅读 · 0 评论 -
bzoj1072: [SCOI2007]排列perm
1072: [SCOI2007]排列permTime Limit: 10 Sec Memory Limit: 162 MBSubmit: 1507 Solved: 945[Submit][Status][Discuss]Description给一个数字串s和正整数d, 统计s有多少种不同的排列能被d整除(可以有前导0)。例如123434有90种排列能被2整除,其中末位为原创 2016-03-15 12:29:01 · 398 阅读 · 0 评论 -
poj2891 Strange Way to Express Integers(中国剩余定理)
Strange Way to Express IntegersTime Limit: 1000MS Memory Limit: 131072KTotal Submissions: 12873 Accepted: 4104DescriptionElina is reading a book written by Ruji原创 2016-04-26 17:31:31 · 462 阅读 · 0 评论 -
poj2409 Let it Bead(polyal原理)
Let it BeadTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 5367 Accepted: 3587Description"Let it Bead" company is located upstairs at 700 Cannery Row in原创 2016-04-26 17:46:08 · 555 阅读 · 0 评论 -
C语言 n*n矩阵求值及求逆矩阵
求出矩阵的值以及输出逆矩阵,英语不好,略拗口。上代码:#include#include#includeint map1[110][110],i,j,k,l,m,n,p,vis[110][110],num;int just[110][110];int just2[110][110];void print(int map[][110],int n)//打印矩阵 { int j;原创 2016-06-15 18:16:51 · 35938 阅读 · 5 评论 -
杭电5610 Baby Ming and Weight lifting
Baby Ming and Weight liftingTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 1344 Accepted Submission(s): 491Problem Description原创 2016-03-31 21:13:25 · 525 阅读 · 0 评论 -
杭电5646 DZY Loves Partition
DZY Loves PartitionTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others)Total Submission(s): 1293 Accepted Submission(s): 481Problem DescriptionDZY l原创 2016-03-31 20:24:42 · 490 阅读 · 0 评论 -
杭电5651 xiaoxin juju needs help
xiaoxin juju needs helpTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 1358 Accepted Submission(s): 387Problem DescriptionAs原创 2016-03-31 17:21:04 · 498 阅读 · 0 评论 -
bzoj2456: mode
2456: modeTime Limit: 1 Sec Memory Limit: 1 MBSubmit: 2488 Solved: 1066[Submit][Status][Discuss]Description给你一个n个数的数列,其中某个数出现了超过n div 2次即众数,请你找出那个数。Input第1行一个正整数n。第2行n个正整数用空格隔开原创 2016-01-11 12:57:24 · 425 阅读 · 0 评论 -
杭电1220 Cube
CubeTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 1672 Accepted Submission(s): 1321Problem DescriptionCowl is good at solvi原创 2016-01-11 13:21:13 · 406 阅读 · 0 评论 -
杭电1713相遇周期
相遇周期Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2634 Accepted Submission(s): 1344Problem Description2007年3月26日,在中俄两国元首的见证原创 2016-01-13 18:02:03 · 866 阅读 · 0 评论