
数学
sdljtyk
自己选择的路,哪怕再苦再累也要豪迈的走下去。
展开
-
2014年山东ACM第五届省赛 angry_birds_again_and_again(数学积分)
angry_birds_again_and_againTime Limit: 2000ms Memory limit: 65536K 有疑问?点这里^_^题目描述The problems called "Angry Birds" and "Angry Birds Again and Again" has been solved by many teams in t原创 2016-04-27 17:39:58 · 719 阅读 · 0 评论 -
最大间隙问题
最大间隙问题。给定n个实数,求这n个实数在数轴上相邻2个数之间的最大差值,设计解最大间隙问题的线性时间算法。样例输入: 5 2.33.1 7.5 1.5 6.3样例输出: 3.2 解法1:对于已给数据进行排序,然后遍历一遍找出最大的间隙。但是题目要求设计线性时间算法,但是已知的排序 中最小为n*log(n原创 2016-09-08 21:59:01 · 1948 阅读 · 0 评论 -
HDU1008——Elevator
ElevatorTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 63914 Accepted Submission(s): 35177Problem DescriptionThe highest build原创 2016-08-06 14:57:21 · 524 阅读 · 0 评论 -
HDU1076——An Easy Task
An Easy TaskTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 20749 Accepted Submission(s): 13348Problem DescriptionIgnatius wa原创 2016-08-31 18:58:08 · 592 阅读 · 0 评论 -
Codeforces Round #368 (Div. 2) -C. Pythagorean Triples
C. Pythagorean Triplestime limit per test:1 secondmemory limit per test:256 megabytesinput:standard inputoutput:standard outputKatya studies in a fifth grade. Recently he原创 2016-08-22 20:42:39 · 642 阅读 · 0 评论 -
Codeforces 710C-Magic Odd Square
C. Magic Odd Squaretime limit per test:1 secondmemory limit per test:256 megabytesinput:standard inputoutput:standard outputFind an n × n matrix with different numbers fr原创 2016-08-23 08:30:14 · 1294 阅读 · 0 评论 -
POJ2084——Game of Connections
Game of ConnectionsTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 8343 Accepted: 4146DescriptionThis is a small but ancient game. You are supposed to w原创 2016-11-23 11:26:56 · 423 阅读 · 0 评论 -
POJ1850——Code
CodeTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 9492 Accepted: 4542DescriptionTransmitting and memorizing information is a task that requires differ原创 2016-11-23 11:31:50 · 349 阅读 · 0 评论 -
HDU2068——RPG的错排
RPG的错排Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 11639 Accepted Submission(s): 4773Problem Description今年暑假杭电ACM集训队第一原创 2016-11-23 11:41:46 · 752 阅读 · 0 评论 -
统计数字
统计数字问题。给定一本书,其中包含n页,计算出书的全部页码中用到了多少个数字0…9。样例输入: 11样例输出: 1 4 1 1 1 1 1 1 1 1解法1:暴力解决,统计0~9出现的次数,从1遍历到给出数字,对于每一个数字的每一位进行判原创 2016-09-08 13:43:04 · 1487 阅读 · 0 评论 -
HDU5630——Rikka with Chess
Problem DescriptionYuta gives Rikka a chess board of size n×m.As we all know, on a chess board, every cell is either black or white and every two cells that share a side have different colors.原创 2016-03-03 16:41:11 · 696 阅读 · 0 评论 -
2011年山东ACM第二届省赛 Binomial Coeffcients(求组合数)
Binomial Coeffcients Time Limit: 1000MS Memory limit: 65536K 题目描述 输入 输出 示例输入31 110 2954 723示例输出1453557658解:题意就是求解n的阶乘除以(n-k)的阶乘与k的阶乘的积所得的商并且商对10000003取模。在进行求原创 2016-04-27 16:38:23 · 903 阅读 · 0 评论 -
蓝桥杯之基础练习 闰年判断
问题描述给定一个年份,判断这一年是不是闰年。当以下情况之一满足时,这一年是闰年:1. 年份是4的倍数而不是100的倍数;2. 年份是400的倍数。其他的年份都不是闰年。输入格式输入包含一个整数y,表示当前的年份。输出格式输出一行,如果给定的年份是闰年,则输出yes,否则输出no。说明:当试题指定你输出一个字原创 2016-01-17 12:53:21 · 774 阅读 · 0 评论 -
HDU5645——DZY Loves Balls
DZY Loves BallsTime Limit : 4000/2000ms (Java/Other) Memory Limit : 262144/262144K (Java/Other)Total Submission(s) : 5 Accepted Submission(s) : 3Font: Times New Roman | Verdana | Georgia原创 2016-08-05 14:32:54 · 555 阅读 · 0 评论 -
HDU1108——最小公倍数
Problem Description给定两个正整数,计算这两个数的最小公倍数。 Input输入包含多组测试数据,每组只有一行,包括两个不大于1000的正整数. Output对于每个测试用例,给出这两个数的最小公倍数,每个实例输出一行。 Sample Input10 14 Sam原创 2016-01-20 16:39:17 · 576 阅读 · 0 评论 -
HDU2503——a/b + c/d
Problem Description给你2个分数,求他们的和,并要求和为最简形式。 Input输入首先包含一个正整数T(T Output对于每组测试数据,输出两个整数e和f,表示a/b + c/d的最简化结果是e/f,每组输出占一行。 Sample Input21 2 1 34 3 2 3原创 2016-01-21 15:20:22 · 842 阅读 · 0 评论 -
HDU2529——shot
ShotTime Limit: 5000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1154 Accepted Submission(s): 642Problem Description“超人”霍华德在NBA扣篮大赛上要求把篮筐升原创 2016-03-13 15:57:06 · 601 阅读 · 0 评论 -
HDU1018——Big Number
Big NumberTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 34866 Accepted Submission(s): 16552Problem DescriptionIn many applica原创 2016-08-05 10:57:10 · 552 阅读 · 0 评论 -
HDU2548——两军交锋
两军交锋Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 5573 Accepted Submission(s): 3737Problem Description话说辽军与MCA相峙多年,终于在一个秋日的早晨原创 2016-08-05 14:15:20 · 790 阅读 · 0 评论 -
POJ3117——World Cup
World CupTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 9214 Accepted: 4629DescriptionA World Cup of association football is being held with teams fr原创 2017-02-28 14:19:46 · 599 阅读 · 0 评论