![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
————数学问题————
昨日明眸
个人爱好
展开
-
1810: water problem II(今天心情不爽,map)
Time Limit: 1 Sec Memory Limit: 128 MBSubmit: 170 Solved: 80SubmitStatusWeb BoardDescription相信大家对A+B问题最熟悉了。实验室有个女人(传说中的潘同学)经常卡在这种题目上。。。有一次,他边敷着面膜边做题,遇见了这样一个题目:输入两个表示数的英文单词,输出他们的和原创 2016-08-03 20:47:53 · 294 阅读 · 0 评论 -
Patrick and Shopping(距离比较)
Patrick and ShoppingTime Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmitStatusDescriptionToday Patrick waits for a visit from his friend Spongebob. To pr原创 2016-07-21 16:51:42 · 460 阅读 · 0 评论 -
Uncowed Forces(给方法,算总分)
Uncowed ForcesTime Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmitStatusDescriptionKevin Sun has just finished competing in Codeforces Round #334! The ro原创 2016-07-21 16:55:54 · 546 阅读 · 0 评论 -
HDD is Outdated Technology(求总间隔)
HDD is Outdated TechnologyTime Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmitStatusDescriptionHDD hard drives group data by sectors. All files are split t原创 2016-07-21 17:18:36 · 352 阅读 · 0 评论 -
Pasha and Stick(纯数学问题)
Pasha and StickTime Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmitStatusDescriptionPasha has a wooden stick of some positive integer lengthn. He wants t原创 2016-07-21 17:24:47 · 619 阅读 · 0 评论 -
The Text Splitting(字符串问题)
Pasha and StickTime Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmitStatusDescriptionPasha has a wooden stick of some positive integer lengthn. He wants t原创 2016-07-21 17:35:12 · 838 阅读 · 0 评论 -
1720: 无聊的游戏(好强大的推理)
1720: 无聊的游戏Time Limit: 1 Sec Memory Limit: 128 MBSubmit: 172 Solved: 33SubmitStatusWeb BoardDescriptionA、B两人玩下面的游戏:从集合E={1,2,...,n}中随机取k个数。若这k个数的和是偶数,则A获胜;否则B获胜。请你判断游戏对谁有利。In原创 2016-08-04 19:57:53 · 575 阅读 · 0 评论 -
1895: 985的0-1串难题
1895: 985的0-1串难题Time Limit: 1 Sec Memory Limit: 128 MBSubmit: 152 Solved: 36SubmitStatusWeb BoardDescription985有一个长度为n的0-1串,已知他最多可以修改k次(每次修改一个字符即0->1 或者 1->0),他想知道连续的全1子串最长是多少。原创 2016-08-04 15:04:25 · 292 阅读 · 0 评论 -
1712: 神密的数列(打表)
Time Limit: 1 Sec Memory Limit: 128 MBSubmit: 140 Solved: 108SubmitStatusWeb BoardDescription2030年,酷夏。一队考古人员来到这片山区,原因据说是发现这里可能有极其珍贵的古迹。 遗迹的开发工作工作远比他们之前想象的复杂度得多,开发进度缓慢,眼看着时间就快来不急了。原创 2016-08-04 11:39:54 · 349 阅读 · 0 评论 -
1790: 弹珠游戏(直接写)
1790: 弹珠游戏Time Limit: 1 Sec Memory Limit: 128 MBSubmit: 26 Solved: 21SubmitStatusWeb BoardDescriptionske_fire跟梦梦最近迷上了一款弹珠游戏,游戏开始时双方向对方发射一颗弹珠,双方弹珠都具有不同的速度。在碰撞之后弹珠会原路返回,因为这款游戏物理引擎比原创 2016-08-04 11:31:47 · 299 阅读 · 0 评论 -
最小公倍数
最小公倍数 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 4893 Accepted Submission(s): 3419 Problem Description给定两个原创 2016-07-21 08:32:48 · 290 阅读 · 0 评论 -
Tricky Sum(纯数学计算)
Tricky SumTime Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmitStatusDescription求和是一种最常见的运算,我们经常做的就是1加到n的和。例如,1加到100的和是5050。但是现在,我们稍微变动一下求和方法,对于属于2的幂次的数,我们做的是原创 2016-07-21 16:46:48 · 726 阅读 · 0 评论 -
Rank(该学生第几名)
Rank Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4538 Accepted Submission(s): 1294 Problem DescriptionJacks原创 2016-07-20 21:14:44 · 893 阅读 · 0 评论 -
Nasty Hacks(划不划算)
Nasty Hacks Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3784 Accepted Submission(s): 2393 Problem Description原创 2016-07-21 08:27:02 · 467 阅读 · 0 评论 -
LightOJ1104---Birthday Paradox (概率)
Sometimes some mathematical results are hard to believe. One of the common problems is the birthday paradox. Suppose you are in a party where there are 23 people including you. What is the probability原创 2016-08-15 08:40:42 · 238 阅读 · 0 评论 -
1264 线段相交(几何计算)
1264 线段相交基准时间限制:1 秒 空间限制:131072 KB 分值: 0 难度:基础题给出平面上两条线段的两个端点,判断这两条线段是否相交(有一个公共点或有部分重合认为相交)。 如果相交,输出"Yes",否则输出"No"。Input第1行:一个数T,表示输入的测试数量(1 第2 - T + 1行:每行8个数,x1,y1,x2,y2,x3,y3,x4,y4。(-10^8原创 2016-08-11 17:35:38 · 229 阅读 · 0 评论 -
1893: 985的数学难题(运算方式考察)
1893: 985的数学难题Time Limit: 2 Sec Memory Limit: 128 MBSubmit: 120 Solved: 21SubmitStatusWeb BoardDescription985有n个正整数,他想快速知道下面函数的返回值int a[N+1];long long Solve() { int i, j原创 2016-08-09 09:26:43 · 300 阅读 · 0 评论 -
hdu--5621KK's Point(排列组合)
KK's PointTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 442 Accepted Submission(s): 148Problem DescriptionOur lovely KK has原创 2016-08-02 21:28:39 · 306 阅读 · 0 评论 -
Alarm(找规律)
AlarmDESCRIPTIONGiven a number sequence [3,7,22,45,116,...][3,7,22,45,116,...]. Please tell me the kk-th number.INPUTA number T (T100)T (T indicates the number of t原创 2016-08-05 20:59:52 · 430 阅读 · 0 评论 -
1874: 蛤玮学计网(要想到所有情况)
1874: 蛤玮学计网Time Limit: 1 Sec Memory Limit: 128 MBSubmit: 1106 Solved: 173SubmitStatusWeb BoardDescription蛤玮最近学习了关于ip的知识,于是他迫不及待的想把新知识传授给她的妹子.蛤玮的妹子随便写下了一个字符串,蛤玮现在要告诉她这个字符串是不是一个合法的原创 2016-08-05 17:20:31 · 413 阅读 · 0 评论 -
1736: 签到二(别拦我,撞死算了)
1736: 签到二Time Limit: 1 Sec Memory Limit: 128 MBSubmit: 151 Solved: 22SubmitStatusWeb BoardDescription给你一个长度为n的数列X,和一个长度为m的数列Y(下表从1 开始)。我们规定ans[i][j] = x[1]*y[1]+x[1]*y[2]+……+x[原创 2016-08-05 11:58:57 · 297 阅读 · 0 评论 -
ZZULIOJ1736: 签到二(老是输出超出限制,已疯,求解)
1736: 签到二Time Limit: 1 Sec Memory Limit: 128 MBSubmit: 148 Solved: 20SubmitStatusWeb BoardDescription给你一个长度为n的数列X,和一个长度为m的数列Y(下表从1 开始)。我们规定ans[i][j] = x[1]*y[1]+x[1]*y[2]+……+x[原创 2016-08-05 11:22:38 · 863 阅读 · 0 评论 -
...(Div. 1 + Div. 2) A. Bear and Three Balls(是否存在三个连续自然数)
Limak is a little polar bear. He has n balls, thei-th ball has size ti.Limak wants to give one ball to each of his three friends. Giving gifts isn't easy — there are two rules Limak must obey to原创 2016-05-28 10:46:19 · 263 阅读 · 0 评论 -
1902: 985的因子对难题(终于想通了,不容易啊⊙﹏⊙b汗)
1902: 985的因子对难题Time Limit: 2 Sec Memory Limit: 128 MBSubmit: 135 Solved: 32SubmitStatusWeb BoardDescription985有n个正整数,他想知道存在多少个不同的因子对(a[i], a[j])使得1 特别地,他认为(a[i],a[j])与(a[j],a[i原创 2016-08-05 08:32:58 · 277 阅读 · 0 评论 -
1812: sort(好恶心的输入方式)
1812: sortTime Limit: 1 Sec Memory Limit: 128 MBSubmit: 277 Solved: 54SubmitStatusWeb BoardDescription想必大家对排序已经很熟悉了,但是spy好像对排序不太熟悉,有一天,他看到这样一个关于排序的题目:对于 k 个用空格分隔开的整数,依次为 n1, n2 … n原创 2016-08-04 08:46:49 · 255 阅读 · 0 评论 -
1809: make pair(好强大的数学,数学求模)
1809: make pairTime Limit: 1 Sec Memory Limit: 128 MBSubmit: 84 Solved: 62SubmitStatusWeb BoardDescriptionpair是c++标准模板库中一种十分有用的模板类型,它是一个二元组。我们可以用它来表示一个二维坐标点,人的身高体重等等。make_pair()函数可以方原创 2016-08-03 20:32:03 · 302 阅读 · 0 评论 -
快速幂
快速幂Time Limit:1000MS Memory Limit:30000KB 64bit IO Format:%I64d & %I64uSubmitStatusPracticePOJ 1995DescriptionPeople are different. Some secretly read magazines full of inter原创 2016-05-16 18:37:19 · 225 阅读 · 0 评论 -
Light OJ 1008 Fibsieve`s Fantabulous Birthday(找出数字位置)
Fibsieve had a fantabulous (yes, it's an actual word) birthday party this year. He had so many gifts that he was actually thinking of not having a party next year.Among these gifts there was an N x原创 2016-05-28 18:23:30 · 324 阅读 · 0 评论 -
Number Sequence(存在循环规律)
Number SequenceTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 1803 Accepted Submission(s): 688 Problem DescriptionA原创 2016-07-22 19:47:39 · 6732 阅读 · 8 评论 -
Rightmost Digit(找规律)
Rightmost DigitTime Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionGiven a positive integer N, you should output the most right digi原创 2016-07-22 16:52:09 · 485 阅读 · 1 评论 -
NYOJ(蛇形填数)
蛇形填数时间限制:3000 ms | 内存限制:65535 KB难度:3描述在n*n方陈里填入1,2,...,n*n,要求填成蛇形。例如n=4时方陈为:10 11 12 19 16 13 28 15 14 37 6 5 4输入直接输入方陈的维数,即n的值。(n输出输出结果是蛇形方陈。样例输入3样例输出7 8 1原创 2016-06-10 17:23:06 · 229 阅读 · 0 评论 -
题目都是浮云
In this problem you are to calculate the sum of all integers from 1 to n, but you should take all powers of two with minus in the sum.For example, for n = 4 the sum is equal to - 1 - 2 + 3 - 4 =原创 2016-05-28 18:42:20 · 304 阅读 · 0 评论 -
CodeForces 597 A. Divisibility(坑,满满的都是坑)
Time Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmitStatusDescriptionFind the number of k-divisible numbers on the segment[a, b]. In other words you need to原创 2016-05-28 17:59:53 · 330 阅读 · 0 评论 -
Codeforces_(A).Array
Vitaly has an array of n distinct integers. Vitaly wants to divide this array into threenon-empty sets so as the following conditions hold:The product of all numbers in the first set is less t原创 2016-05-28 10:15:18 · 362 阅读 · 0 评论 -
开汽车找房子
The main street of Berland is a straight line with n houses built along it (n is an even number). The houses are located at both sides of the street. The houses with odd numbers are at one side of t原创 2016-05-28 09:39:14 · 804 阅读 · 0 评论 -
LightOJ 1294:Positive Negative Sign
Given two integers: n and m and n is divisible by 2m, you have to write down the first n natural numbers in the following form. At first take first m integers and make their sign negative, then take n原创 2016-05-27 19:00:49 · 243 阅读 · 0 评论 -
UVA 10566 Crossed Ladders (几何题,二分)
Crossed LaddersTime Limit:2000MS Memory Limit:32768KB 64bit IO Format:%lld & %lluSubmit StatusDescriptionA narrow street is lined with tall buildings. An x foot long ladder i原创 2016-07-26 19:02:21 · 709 阅读 · 0 评论 -
POJ 1905 Expanding Rods二分
Expanding RodsTime Limit:500MS Memory Limit:32768KB 64bit IO Format:%lld & %lluSubmit StatusDescriptionWhen a thin rod of length L is heated n degrees, it expands to a new le原创 2016-07-26 19:09:36 · 400 阅读 · 0 评论 -
LightOJ 1275 Internet Service Providers(数学求解)
Internet Service ProvidersTime Limit:2000MS Memory Limit:32768KB 64bit IO Format:%lld & %lluSubmit StatusDescriptionA group of N Internet Service Provider companies (ISPs) us原创 2016-07-27 11:23:57 · 322 阅读 · 0 评论 -
1894: 985的方格难题
1894: 985的方格难题Time Limit: 1 Sec Memory Limit: 128 MBSubmit: 332 Solved: 63SubmitStatusWeb BoardDescription985走入了一个n * n的方格地图,他已经知道其中有一个格子是坏的。现在他要从(1, 1)走到(n, n),每次只可以向下或者向右走一步,问他能否原创 2016-08-03 19:07:47 · 499 阅读 · 0 评论