学习之路
文章平均质量分 70
Bear1997
这个作者很懒,什么都没留下…
展开
-
【Codeforces】-297C-Splitting the Uniqueness(构造)
C. Splitting the Uniquenesstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputPolar bears like unique arrays —原创 2016-10-23 16:57:13 · 436 阅读 · 0 评论 -
【codeforces】-598A-Tricky Sum(数列求和,2的幂为负)
A. Tricky Sumtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputIn this problem you are to calculate the sum o原创 2016-05-24 18:11:58 · 666 阅读 · 0 评论 -
【杭电-oj】-2012-素数判定
Problem Description对于表达式n^2+n+41,当n在(x,y)范围内取整数值时(包括x,y)(-39 Input输入数据有多组,每组占一行,由两个整数x,y组成,当x=0,y=0时,表示输入结束,该行不做处理。 Output对于每个给定范围内的取值,如果表达式的值都为素数,则输出"OK",否则请输出“Sorry”,原创 2016-03-06 18:30:27 · 614 阅读 · 0 评论 -
【LigntOj】-1008- Fibsieve`s Fantabulous Birthday
1008 - Fibsieve`s Fantabulous Birthday PDF (English)StatisticsForumTime Limit: 0.5 second(s)Memory Limit: 32 MBFibsieve had a fantabulous (yes, it's a原创 2016-06-15 08:13:28 · 524 阅读 · 0 评论 -
【Codeforces】-300A- Array(分三组正负零)
点击打开题目A. Arraytime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputVitaly has an array of n d原创 2016-06-15 08:06:56 · 593 阅读 · 0 评论 -
【杭电-oj】-2030-汉字统计
汉字统计Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 37764 Accepted Submission(s): 20546Problem Description统计给定文本文件中汉字的个数。原创 2016-06-27 17:33:40 · 1656 阅读 · 0 评论 -
【杭电-oj】-2027-统计元音
统计元音Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 58603 Accepted Submission(s): 23331Problem Description统计每个元音字母在字符串中出现的次数。原创 2016-06-27 17:27:15 · 573 阅读 · 0 评论 -
【杭电-oj】-2055-An easy problem
An easy problemTime Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 20399 Accepted Submission(s): 13565Problem Descriptionwe defin原创 2016-06-27 17:23:11 · 1094 阅读 · 0 评论 -
【杭电-oj】-5650-so easy(所有子集异或)
so easyTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 649 Accepted Submission(s): 435Problem DescriptionGiven an array with原创 2016-05-23 22:30:03 · 906 阅读 · 0 评论 -
【杭电-oj】-2138-How many prime numberszz
How many prime numbersTime Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 15847 Accepted Submission(s): 5491Problem Description原创 2016-06-10 17:08:57 · 932 阅读 · 0 评论 -
【lightoj】-1294 Positive Negative Sign
Positive Negative Signime Limit:2000MS Memory Limit:32768KB 64bit IO Format:%lld & %lluSubmit StatusDescriptionGiven two integers: n and m and n is divisible by 2m, you h原创 2016-06-10 11:43:42 · 349 阅读 · 0 评论 -
【杭电-oj】-2033-人见人爱A+B(时间)
人见人爱A+BTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 37267 Accepted Submission(s): 24787Problem DescriptionHDOJ上面已经有10来道A+B原创 2016-05-21 23:00:34 · 393 阅读 · 0 评论 -
【郑轻oj】 - 1041: 数列求和2(正负交替出现)
Description输入一个整数n,输出数列1-1/3+1/5-……前n项的和。Input输入只有一个整数n。Output#include int main (){ double n,i,z,x,y; scanf("%lf",&n); i=1; z=-1; y=0; while (n--) { x=0; z=z*(-1) ;原创 2016-02-01 14:21:08 · 4146 阅读 · 0 评论 -
【杭电-oj】-2042-不容易系列之二(类似于猴子吃桃的爷爷和羊)
杭州),亚信科技,壹晨仟阳(杭不容易系列之二Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 23825 Accepted Submission(s): 19034Problem Desc原创 2016-05-21 21:45:49 · 654 阅读 · 0 评论 -
【杭电-ij】-2040-亲和数
亲和数Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 32871 Accepted Submission(s): 19840Problem Description古希腊数学家毕达哥拉斯在自然数研究中原创 2016-05-21 21:42:58 · 444 阅读 · 0 评论 -
【杭电-oj】-2039-能否构成三角形
三角形Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 71919 Accepted Submission(s): 24120Problem Description给定三条边,请你判断一下能不能组成一个三原创 2016-05-21 21:40:26 · 1598 阅读 · 0 评论 -
【HDU】-2096-小明A+B(水)
小明A+BTime Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 36991 Accepted Submission(s): 17540Problem Description小明今年3岁了, 现在他已经能够认识原创 2016-08-04 21:23:24 · 672 阅读 · 0 评论 -
【Codeforces】-599A-Patrick and Shopping(水)
点击打开题目A. Patrick and Shoppingtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputToday Patrick waits fo原创 2016-07-22 08:33:29 · 348 阅读 · 0 评论 -
【light-oj】-1305 - Area of a Parallelogram(水)
1305 - Area of a Parallelogram PDF (English)StatisticsForumTime Limit: 1 second(s)Memory Limit: 32 MBA parallelogram is a quadrilateral with two pairs原创 2016-09-06 17:07:15 · 395 阅读 · 0 评论 -
【Ligth-oj】-1182 - Parity(水)
1182 - Parity PDF (English)StatisticsForumTime Limit: 0.5 second(s)Memory Limit: 32 MBGiven an integer n, first we represent it in binary. Then we cou原创 2016-09-06 17:02:56 · 455 阅读 · 0 评论 -
【HDU】-1001-Sum Problem(水,变态)
Sum ProblemTime Limit: 1000/500 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 417386 Accepted Submission(s): 105189Problem DescriptionHey, welcom原创 2016-08-15 12:02:22 · 602 阅读 · 2 评论 -
【light-oj】-’1307 - Counting Triangles(二分)
1307 - Counting Triangles PDF (English)StatisticsForumTime Limit: 2 second(s)Memory Limit: 32 MBYou are given N sticks having distinct lengths; you ha原创 2016-09-16 17:35:47 · 460 阅读 · 0 评论 -
【light-oj】-1331 - Agent J(几何,水)
1331 - Agent J PDF (English)StatisticsForumTime Limit: 1 second(s)Memory Limit: 32 MBAgent J is preparing to steal an antique diamond piece from a mus原创 2016-09-16 17:24:45 · 509 阅读 · 0 评论 -
【ligth-oj】1225 - Palindromic Numbers (II)(水)
1225 - Palindromic Numbers (II) PDF (English)StatisticsForumTime Limit: 0.5 second(s)Memory Limit: 32 MBA palindromic number or numeral palindrome is原创 2016-09-16 17:20:27 · 430 阅读 · 0 评论 -
【light-oj】1136 - Division by 3(数学,规律)
1136 - Division by 3 PDF (English)StatisticsForumTime Limit: 2 second(s)Memory Limit: 32 MBThere is sequence 1, 12, 123, 1234, ..., 12345678910, ... .原创 2016-09-16 17:17:11 · 512 阅读 · 0 评论 -
【Light-oj】-1022 - Circle in Square(水)
1022 - Circle in Square PDF (English)StatisticsForumTime Limit: 0.5 second(s)Memory Limit: 32 MBA circle is placed perfectly into a square. The term p原创 2016-09-06 17:11:02 · 457 阅读 · 0 评论 -
【zzuli-oj】-1913: 小火山的计算能力(计算器,水)
1913: 小火山的计算能力Time Limit: 1 Sec Memory Limit: 128 MBSubmit: 471 Solved: 123SubmitStatusWeb BoardDescription别人说小火山的计算能力不行,小火山很生气,于是他想证明自己,现在有一个表达式,他想计算出来。Input首先是一个t(1Outp原创 2016-08-11 08:55:25 · 550 阅读 · 0 评论 -
【Codeforces】-554B-Ohana Cleans Up(水)
B. Ohana Cleans Uptime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputOhana Matsumae is trying to clean a room原创 2016-08-22 21:32:25 · 391 阅读 · 0 评论 -
【nyoj】-96-n-1位数(STL,简单)
n-1位数时间限制:3000 ms | 内存限制:65535 KB难度:1描述已知w是一个大于10但不大于1000000的无符号整数,若w是n(n≥2)位的整数,则求出w的后n-1位的数。输入第一行为M,表示测试数据组数。接下来M行,每行包含一个测试数据。输出输出M行,每行为对应行的n-1位数(忽略前缀0)。如果除了最高位外,其余位都原创 2016-08-18 10:54:36 · 436 阅读 · 0 评论 -
【Codeforces】-702A- Maximum Increase(水)
点击打开题目A. Maximum Increasetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given array consis原创 2016-08-06 10:56:55 · 447 阅读 · 0 评论 -
【Codeforces】-611A-New Year and Days(水)
点击打开题目链接A. New Year and Daystime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputToday is Wed原创 2016-07-22 08:49:53 · 468 阅读 · 0 评论 -
【codeforces】-610A-Pasha and Stick(水)
点击打开题目链接A. Pasha and Sticktime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputPasha has a wooden st原创 2016-07-22 08:46:03 · 324 阅读 · 0 评论 -
【codeforces】-604A-Uncowed Forces(水)
点击打开题目链接A. Uncowed Forcestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputKevin Sun has ju原创 2016-07-22 08:36:19 · 443 阅读 · 0 评论 -
【杭电-oj】-2026-首字母变大写
首字母变大写Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 48459 Accepted Submission(s): 26738Problem Description输入一个英文句子,将每个单词的第一原创 2016-05-21 21:36:37 · 626 阅读 · 0 评论 -
【codeforces】--Football(不能有七个0或1连续)
A. Footballtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputPetya loves football very much. One day, as he原创 2016-05-21 12:00:53 · 847 阅读 · 0 评论 -
【codeforces】-- Life Without Zeros(两个数先加后消去包含的零和先消后加判断是否相等 )
A. Life Without Zerostime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputCan you imagine our life if we remove原创 2016-05-21 11:51:04 · 516 阅读 · 0 评论 -
【codeforces】-#621-AWet Shark and Odd and Even(n个数最大偶数和)
A. Wet Shark and Odd and Eventime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputToday, Wet Shark is given n i原创 2016-05-25 20:00:29 · 619 阅读 · 0 评论 -
【杭电-oj】-2020-绝对值排序(冒泡排序注意第二个for ,负数变正数但原变量值不变可先平方)
Problem Description输入n(n Input输入数据有多组,每组占一行,每行的第一个数字为n,接着是n个整数,n=0表示输入数据的结束,不做处理。 Output对于每个测试实例,输出排序后的结果,两个数之间用一个空格隔开。每个测试实例占一行。 Sample Input3 3 -4 2原创 2016-03-14 21:19:15 · 785 阅读 · 0 评论 -
【杭电-oj】-2561-第二小整数(sort快排)
Problem Description求n个整数中倒数第二小的数。每一个整数都独立看成一个数,比如,有三个数分别是1,1,3,那么,第二小的数就是1。 Input输入包含多组测试数据。输入的第一行是一个整数C,表示有C测试数据;每组测试数据的第一行是一个整数n,表示本组测试数据有n个整数(2 Output请为每组测原创 2016-04-05 16:38:59 · 521 阅读 · 0 评论 -
【杭电-oj】-3079-字符转换(元音大写,辅音小写)
Problem DescriptionThe "Vowel-Counting-Word"(VCW), complies with the following conditions.Each vowel in the word must be uppercase. Each consonant (the letters except the vowels) must be lower原创 2016-04-05 16:26:24 · 1816 阅读 · 0 评论