随笔分类 -  ACM-数学题

思维
摘要:1135原根基准时间限制:1秒 空间限制:131072KB 分值:0难度:基础题设m是正整数,a是整数,若a模m的阶等于φ(m),则称a为模m的一个原根。(其中φ(m)表示m的欧拉函数)给出1个质数P,找出P最小的原根。Input输入1个质数P(3 3 #include 4 #include 5... 阅读全文
posted @ 2015-08-12 00:12 寻找&星空の孩子 阅读(1239) 评论(0) 推荐(0)
摘要:官方解题报告:http://bestcoder.hdu.edu.cn/blog/2015-multi-university-training-contest-6-solutions-by-zju/表示很难看。。。。orz1003题 链接:http://acm.hdu.edu.cn/showprobl... 阅读全文
posted @ 2015-08-07 14:22 寻找&星空の孩子 阅读(643) 评论(0) 推荐(0)
摘要:1503: 点到圆弧的距离Time Limit:1 SecMemory Limit:128 MBSpecial JudgeSubmit:325Solved:70[Submit][Status][Web Board]Description输入一个点P和一条圆弧(圆周的一部分),你的任务是计算P到圆弧的... 阅读全文
posted @ 2015-07-30 22:22 寻找&星空の孩子 阅读(1215) 评论(0) 推荐(1)
摘要:Integer PartitionTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 524 Accepted Submission(s): 238P... 阅读全文
posted @ 2015-07-17 15:58 寻找&星空の孩子 阅读(421) 评论(0) 推荐(0)
摘要:PartitionTime Limit: 6000/3000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 954 Accepted Submission(s): 545Problem D... 阅读全文
posted @ 2015-07-16 23:55 寻找&星空の孩子 阅读(378) 评论(0) 推荐(0)
摘要:A. Vanya and TableVanya has a table consisting of100rows, each row contains100cells. The rows are numbered by integers from1to100from bottom to top, t... 阅读全文
posted @ 2015-06-20 23:59 寻找&星空の孩子 阅读(591) 评论(0) 推荐(0)
摘要:不容易系列之一Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 16646 Accepted Submission(s): 6935Probl... 阅读全文
posted @ 2015-06-17 23:13 寻找&星空の孩子 阅读(401) 评论(0) 推荐(0)
摘要:L -Minimum Sum LCMTime Limit:3000MSMemory Limit:0KB64bit IO Format:%lld & %lluSubmitStatusPracticeUVA 10791题意:输入正整数n,找至少两个数,使得他们的LCM为n且要输出最小的和;思路:既然LC... 阅读全文
posted @ 2015-06-11 21:02 寻找&星空の孩子 阅读(949) 评论(0) 推荐(0)
摘要:I -Teams Time Limit:1000MSMemory Limit:0KB64bit IO Format:%lld & %lluSubmitStatusPracticeUVA 11609题意:有n个人,选多个人参加比赛,其中一个是队长,队长不同其他选手... 阅读全文
posted @ 2015-06-11 20:15 寻找&星空の孩子 阅读(352) 评论(0) 推荐(0)
摘要:K - Integer GameTime Limit:1000MS Memory Limit:0KB 64bit IO Format:%lld & %lluSubmit Status Practice UVA 11489题意:在n中取数字,使剩下的数是3的倍数,不能取则失败。思路:如果能使当前数为3... 阅读全文
posted @ 2015-06-10 21:10 寻找&星空の孩子 阅读(713) 评论(0) 推荐(0)
摘要:J -Palindrome NumbersTime Limit:3000MSMemory Limit:0KB64bit IO Format:%lld & %lluSubmitStatusPracticeUVALive 2889WA了一版面,我也是醉了,就因为一个编译环境不同。。。。。。说多了都是泪。... 阅读全文
posted @ 2015-06-10 13:46 寻找&星空の孩子 阅读(932) 评论(0) 推荐(0)
摘要:Add AgainSummation of sequence of integers is always a common problem in Computer Science. Rather than computing blindly, some intelligent techniques ... 阅读全文
posted @ 2015-06-09 23:56 寻找&星空の孩子 阅读(633) 评论(0) 推荐(0)
摘要:Again Prime? No time.Input: standard inputOutput: standard outputTime Limit: 1 secondThe problem statement is very easy. Given a number n you have to ... 阅读全文
posted @ 2015-05-14 18:50 寻找&星空の孩子 阅读(361) 评论(0) 推荐(0)
摘要:引用 数独游戏技巧(图解)一直都有在玩数独一般难度的都能完成可是高难度的就完全没办法了好多累计玩了几十小时都解不出刚刚在网上看到这个介绍数独技巧的帖子真的很实用不过方法太多得慢慢消化。。。引用地狱大坏蛋的数独游戏技巧(图解)i)唯一数法:如果我们发现某个格子中只有一个可用候选数,那么这个格子必然是这... 阅读全文
posted @ 2015-05-03 16:30 寻找&星空の孩子 阅读(1123) 评论(0) 推荐(0)
摘要:C. KiteTime Limit:1000ms Case Time Limit:1000ms Memory Limit:65536KBVova bought a kite construction kit in a market in Guangzhou. The next day the wea... 阅读全文
posted @ 2015-04-19 21:32 寻找&星空の孩子 阅读(735) 评论(0) 推荐(0)
摘要:That Nice Euler CircuitTime Limit:3000MSMemory Limit:0KB64bit IO Format:%lld & %lluDescriptionLittle Joey invented a scrabble machine that he called E... 阅读全文
posted @ 2015-04-18 16:32 寻找&星空の孩子 阅读(318) 评论(0) 推荐(0)
摘要:题意:Morley定理,求D、E、F的坐标 思路:没什么算法,就是几何的应用。注意旋转角就好了。转载请注明出处:寻找&星空の孩子题目链接:UVA11178 1 #include 2 #include 3 #define PI acos(-1.0) 4 using namespace std; 5 ... 阅读全文
posted @ 2015-04-17 23:16 寻找&星空の孩子 阅读(269) 评论(0) 推荐(0)
摘要:Cylinder CandyTime Limit: 2 Seconds Memory Limit: 65536 KB Special JudgeEdward the confectioner is making a new batch of chocolate covered candy. Each... 阅读全文
posted @ 2015-04-16 21:49 寻找&星空の孩子 阅读(803) 评论(0) 推荐(0)
摘要:Cylinder CandyTime Limit: 2 Seconds Memory Limit: 65536 KB Special JudgeEdward the confectioner is making a new batch of chocolate covered candy. Each... 阅读全文
posted @ 2015-04-12 23:14 寻找&星空の孩子 阅读(560) 评论(0) 推荐(0)
摘要:C -Chinese remainder theorem againTime Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uDescription我知道部分同学最近在看中国剩余定理,就这个定理本身,还是比较简单的:假设m1,... 阅读全文
posted @ 2015-03-31 23:00 寻找&星空の孩子 阅读(363) 评论(0) 推荐(0)