上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 22 下一页

2017年8月2日

摘要: Problem Description RXD is a good mathematician.One day he wants to calculate: ∑i=1nkμ2(i)×⌊nki−−−√⌋ output the answer module 109+7.1≤n,k≤1018 μ(n)=1( 阅读全文
posted @ 2017-08-02 10:14 Annetree 阅读(485) 评论(0) 推荐(0)
 
摘要: Problem Description As we all know that RXD is a life winner, therefore he always goes out, dating with his female friends.Nevertheless, it is a pity 阅读全文
posted @ 2017-08-02 10:02 Annetree 阅读(184) 评论(0) 推荐(0)
 
摘要: Problem Description Sdjpx is a powful man,he controls a big country.There are n soldiers numbered 1~n(1<=n<=3000).But there is a big problem for him.H 阅读全文
posted @ 2017-08-02 09:48 Annetree 阅读(345) 评论(0) 推荐(1)

2017年7月31日

摘要: 让我们定义 dn 为:dn = pn+1 - pn,其中 pi 是第i个素数。显然有 d1=1 且对于n>1有 dn 是偶数。“素数对猜想”认为“存在无穷多对相邻且差为2的素数”。 现给定任意正整数N (< 105),请计算不超过N的满足猜想的素数对的个数。 输入格式:每个测试输入包含1个测试用例, 阅读全文
posted @ 2017-07-31 15:43 Annetree 阅读(150) 评论(0) 推荐(0)
 
摘要: “答案正确”是自动判题系统给出的最令人欢喜的回复。本题属于PAT的“答案正确”大派送 —— 只要读入的字符串满足下列条件,系统就输出“答案正确”,否则输出“答案错误”。 得到“答案正确”的条件是: 1. 字符串中必须仅有P, A, T这三种字符,不可以包含其它字符;2. 任意形如 xPATx 的字符 阅读全文
posted @ 2017-07-31 15:17 Annetree 阅读(145) 评论(0) 推荐(0)
 
摘要: 图像过滤是把图像中不重要的像素都染成背景色,使得重要部分被凸显出来。现给定一幅黑白图像,要求你将灰度值位于某指定区间内的所有像素颜色都用一种指定的颜色替换。 输入格式: 输入在第一行给出一幅图像的分辨率,即两个正整数M和N(0 < M, N <= 500),另外是待过滤的灰度值区间端点A和B(0 < 阅读全文
posted @ 2017-07-31 14:50 Annetree 阅读(117) 评论(0) 推荐(0)
 
摘要: 判断题的评判很简单,本题就要求你写个简单的程序帮助老师判题并统计学生们判断题的得分。 输入格式: 输入在第一行给出两个不超过100的正整数N和M,分别是学生人数和判断题数量。第二行给出M个不超过5的正整数,是每道题的满分值。第三行给出每道题对应的正确答案,0代表“非”,1代表“是”。随后N行,每行给 阅读全文
posted @ 2017-07-31 14:42 Annetree 阅读(125) 评论(0) 推荐(0)
 
摘要: 给定N个非0的个位数字,用其中任意2个数字都可以组合成1个2位的数字。要求所有可能组合出来的2位数字的和。例如给定2、5、8,则可以组合出:25、28、52、58、82、85,它们的和为330。 输入格式: 输入在一行中先给出N(1<N<10),随后是N个不同的非0个位数字。数字间以空格分隔。 输出 阅读全文
posted @ 2017-07-31 14:34 Annetree 阅读(131) 评论(0) 推荐(0)
 
摘要: 复数可以写成(A + Bi)的常规形式,其中A是实部,B是虚部,i是虚数单位,满足i2 = -1;也可以写成极坐标下的指数形式(R*e(Pi)),其中R是复数模,P是辐角,i是虚数单位,其等价于三角形式 R(cos(P) + isin(P))。 现给定两个复数的R和P,要求输出两数乘积的常规形式。 阅读全文
posted @ 2017-07-31 14:29 Annetree 阅读(191) 评论(0) 推荐(0)
 
摘要: 划拳是古老中国酒文化的一个有趣的组成部分。酒桌上两人划拳的方法为:每人口中喊出一个数字,同时用手比划出一个数字。如果谁比划出的数字正好等于两人喊出的数字之和,谁就赢了,输家罚一杯酒。两人同赢或两人同输则继续下一轮,直到唯一的赢家出现。 下面给出甲、乙两人的划拳记录,请你统计他们最后分别喝了多少杯酒。 阅读全文
posted @ 2017-07-31 11:01 Annetree 阅读(190) 评论(0) 推荐(0)

2017年7月29日

摘要: Problem Description Function Fx,ysatisfies:For given integers N and M,calculate Fm,1 modulo 1e9+7. Input There is one integer T in the first line.The 阅读全文
posted @ 2017-07-29 13:53 Annetree 阅读(389) 评论(0) 推荐(0)

2017年7月28日

摘要: Problem Description Steph is extremely obsessed with “sequence problems” that are usually seen on magazines: Given the sequence 11, 23, 30, 35, what i 阅读全文
posted @ 2017-07-28 14:46 Annetree 阅读(307) 评论(0) 推荐(0)
 
摘要: Problem Description On a two-dimensional plane, give you n integer points. Your task is to figure out how many different regular polygon these points 阅读全文
posted @ 2017-07-28 13:46 Annetree 阅读(244) 评论(0) 推荐(0)
 
摘要: 题目传送:http://acm.hdu.edu.cn/showproblem.php?pid=6045 Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s 阅读全文
posted @ 2017-07-28 13:12 Annetree 阅读(139) 评论(0) 推荐(0)

2017年7月26日

摘要: 题目传送:http://acm.hdu.edu.cn/showproblem.php?pid=6043 Problem Description KazaQ wears socks everyday.At the beginning, he has n pairs of socks numbered 阅读全文
posted @ 2017-07-26 10:19 Annetree 阅读(182) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 22 下一页