
搜索
文章平均质量分 78
傲慢的么么forever
待到学有所成时,我会找到人生的意义。
展开
-
蓝桥杯 历届试题 波动数列
问题描述 观察这个数列: 1 3 0 2 -1 1 -2 ... 这个数列中后一项总是比前一项增加2或者减少3。 栋栋对这种数列很好奇,他想知道长度为 n 和为 s 而且后一项总是比前一项增加a或者减少b的整数数列可能有多少种呢?输入格式 输入的第一行包含四个整数 n s a b,含义如前面说述。输出格式 输出一行,包含一个整原创 2014-12-01 15:40:15 · 3956 阅读 · 0 评论 -
POJ 3050 Hopscotch
HopscotchTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 2419 Accepted: 1728DescriptionThe cows play the child's game of hopscotch in a non-traditional way. Instead of a linear set原创 2015-05-19 12:27:25 · 446 阅读 · 0 评论 -
POJ 2386 Lake Counting
Lake CountingTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 22854 Accepted: 11526DescriptionDue to recent rains, water has pooled in various places in Farmer John's field, which i原创 2015-05-19 09:55:44 · 382 阅读 · 0 评论 -
Aoj 0525 Osenbei
pilot系列之最基础的穷竭搜索(初级篇)C题意:药药!切克闹! 煎饼果子来一套!有一个烤饼器可以烤r行c列的煎饼,煎饼可以正面朝上(用1表示)也可以背面朝上(用0表示)。一次可将同一行或同一列的煎饼全部翻转。现在需要把尽可能多的煎饼翻成正面朝上,问最多能使多少煎饼正面朝上?输入:多组输入,每组第一行为二整数r, c (1 ≤ r ≤ 10, 1 ≤ c ≤ 10 000),剩下r行c列表原创 2015-05-22 10:16:50 · 764 阅读 · 0 评论 -
POJ 2531 Network Saboteur
Network SaboteurTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 9706 Accepted: 4633DescriptionA university network is composed of N computers. System administrators gathered inform原创 2015-05-07 17:40:15 · 569 阅读 · 0 评论 -
POJ 1562 Oil Deposits
Oil DepositsTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 13709 Accepted: 7473DescriptionThe GeoSurvComp geologic survey company is responsible for detecting underground oil depo原创 2015-05-07 09:46:43 · 484 阅读 · 0 评论 -
POJ 1321 棋盘问题
棋盘问题Time Limit: 1000MS Memory Limit: 10000KTotal Submissions: 25790 Accepted: 12756Description在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列,请编程求解对于给定形状和大小的棋盘,摆放k个棋子的所有可行的摆放原创 2015-05-06 21:09:58 · 439 阅读 · 0 评论 -
HDU 1045 Fire Net
Fire NetTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 7281 Accepted Submission(s): 4150Problem DescriptionSuppose that we have a sq原创 2015-05-06 15:23:27 · 410 阅读 · 0 评论 -
POJ 1111 Image Perimeters
Image PerimetersTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 8178 Accepted: 4903DescriptionTechnicians in a pathology lab analyze digitized images of slides. Objects on a slide原创 2015-05-05 21:02:30 · 353 阅读 · 0 评论 -
POJ 1915 Knight Moves
Knight MovesTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 22794 Accepted: 10654DescriptionBackground Mr Somurolov, fabulous chess-gamer indeed, asserts that no one else but him原创 2015-05-05 12:03:43 · 365 阅读 · 0 评论 -
POJ 3984 迷宫问题
迷宫问题Time Limit: 1000MS Memory Limit: 65536KTotal Submissions: 9877 Accepted: 5848Description定义一个二维数组: int maze[5][5] = {0, 1, 0, 0, 0,0, 1, 0, 1, 0,0, 0, 0, 0, 0,0, 1, 1,原创 2015-05-05 16:21:43 · 379 阅读 · 0 评论 -
HDU 1327 Knight Moves
Knight MovesTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 8010 Accepted Submission(s): 4719Problem DescriptionA friend of you is do原创 2015-05-05 11:10:12 · 463 阅读 · 0 评论 -
POJ 3278 Catch That Cow
Catch That CowTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 54362 Accepted: 16996DescriptionFarmer John has been informed of the location of a fugitive cow and wants to catch her原创 2015-05-04 12:19:02 · 330 阅读 · 0 评论 -
HDU 1312 Red and Black
Red and BlackTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 11822 Accepted Submission(s): 7363Problem DescriptionThere is a rectangu原创 2015-05-04 15:14:03 · 441 阅读 · 0 评论 -
HDU 1010 Tempter of the Bone
Tempter of the BoneTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 76119 Accepted Submission(s): 20867Problem DescriptionThe原创 2015-01-13 21:59:49 · 359 阅读 · 0 评论 -
HDU 1016 Prime Ring Problem
Prime Ring ProblemTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 28915 Accepted Submission(s): 12881Problem DescriptionA rin原创 2015-01-13 18:44:18 · 415 阅读 · 0 评论 -
POJ 3255 Roadblocks
RoadblocksTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 9479 Accepted: 3369DescriptionBessie has moved to a small farm and sometimes enjoys returning to visit one of her best f原创 2015-07-25 17:01:50 · 444 阅读 · 0 评论