
思维
文章平均质量分 85
Calm微笑
若不是终点,请微笑向前!
展开
-
CodeForces Gym 100187 A Potion of Immortality
http://codeforces.com/gym/100187/problem/AA. Potion of Immortalitytime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutput原创 2017-03-20 21:19:58 · 428 阅读 · 0 评论 -
codeForces 486C Palindrome Transformation
C. Palindrome Transformationtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputNam is playing with a string on原创 2016-09-28 18:39:47 · 413 阅读 · 0 评论 -
CodeForces 486B OR in Matrix
B. OR in Matrixtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputLet's define logical OR as an operation on t原创 2016-09-28 16:24:54 · 318 阅读 · 0 评论 -
CodeForces 732C Sanatorium
C. Sanatoriumtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputVasiliy spent his vacation in a sanatorium, ca原创 2016-10-22 16:46:05 · 349 阅读 · 0 评论 -
CodeForces 337C. Quiz
C. Quiztime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputManao is taking part in a quiz. The quiz consists of原创 2016-10-22 15:44:51 · 344 阅读 · 0 评论 -
CodeForces 588 C. Duff and Weight Lifting
C. Duff and Weight Liftingtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputRecently, Duff has been practicin原创 2016-09-24 21:31:22 · 421 阅读 · 0 评论 -
CodeForces 659A Round House
A. Round Housetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputVasya lives in a round building, whose entran原创 2016-09-24 11:14:36 · 260 阅读 · 0 评论 -
CodeForces 501C Misha and Forest
C. Misha and Foresttime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputLet's define a forest as a non-directed原创 2016-09-24 11:13:32 · 338 阅读 · 0 评论 -
CodeForces 500C New Year Book Reading
C. New Year Book Readingtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputNew Year is coming, and Jaehyun de原创 2016-09-20 16:57:18 · 467 阅读 · 0 评论 -
CodeForces 367A Sereja and Algorithm
C. Sereja and Algorithmtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputSereja loves all sorts of algorithms原创 2016-10-09 15:08:28 · 372 阅读 · 0 评论 -
HDU 5961 传递(BFS)
传递Time Limit: 12000/6000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 352 Accepted Submission(s): 158Problem Description我们称一个有向图G是传递的,当且仅当对任意三个不原创 2016-11-06 18:37:56 · 554 阅读 · 0 评论 -
HYSBZ 2456: mode
2456: modeTime Limit: 1 Sec Memory Limit: 1 MBSubmit: 3762 Solved: 1583[Submit][Status][Discuss]Description给你一个n个数的数列,其中某个数出现了超过n div 2次即众数,请你找出那个数。Input第1行一个正整数n。第2行n个正整数用空格隔开原创 2016-10-17 20:54:32 · 333 阅读 · 0 评论 -
51 Nod 1521 一维战舰
http://www.51nod.com/onlineJudge/questionCode.html#!problemId=15211521 一维战舰题目来源: CodeForces基准时间限制:1 秒 空间限制:131072 KB 分值: 10 难度:2级算法题 收藏 关注爱丽丝和鲍博喜欢玩一维战舰的游戏原创 2017-02-22 20:13:50 · 428 阅读 · 0 评论 -
LonLife 1071 - Boring Game
1071 - Boring GameTime Limit:1s Memory Limit:1024MByteSubmissions:595Solved:189DESCRIPTIONIn a mysterious cave, PigVan ( Mr.Van's pet ) has lived for thousands years. PigVa原创 2016-12-25 14:07:48 · 310 阅读 · 0 评论 -
LightOj 1410 - Consistent Verdicts
1410 - Consistent Verdicts PDF (English)StatisticsForumTime Limit: 5 second(s)Memory Limit: 32 MBIn a 2D plane N persons are standing and each of them原创 2016-11-01 18:23:37 · 305 阅读 · 0 评论 -
HDU 5965 扫雷 (递推+枚举)
扫雷Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 918 Accepted Submission(s): 263Problem Description扫雷游戏是晨晨和小璐特别喜欢的智力游戏,她俩最近沉原创 2016-11-12 21:57:06 · 447 阅读 · 0 评论 -
CodeForces 233C Cycles(思维)
C. Cyclestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputJohn Doe started thinking about graphs. After some原创 2016-11-12 16:31:54 · 604 阅读 · 0 评论 -
HDU 1568 Fibonacci (数学)
FibonacciTime Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4887 Accepted Submission(s): 2267Problem Description2007年到来了。经过2006年原创 2016-11-12 11:45:49 · 294 阅读 · 0 评论 -
CodeForces 445C DZY Loves Physics
C. DZY Loves Physicstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputDZY loves Physics, and he enjoys calcul原创 2016-10-29 13:11:51 · 410 阅读 · 0 评论 -
HDU Function Run Fun
Function Run FunTime Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2614 Accepted Submission(s): 1381Problem DescriptionWe all lo原创 2016-10-19 16:06:36 · 406 阅读 · 0 评论 -
HDU 1005 Number Sequence (寻找循环节)
Number SequenceTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 158217 Accepted Submission(s): 38759Problem DescriptionA numbe原创 2016-11-09 17:45:06 · 414 阅读 · 0 评论 -
CodeForces 500B New Year Permutation
New Year PermutationTime Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionUser ainta has a permutation p1, p2, ..., pn. As the New原创 2016-09-19 20:29:01 · 360 阅读 · 0 评论 -
HDU 1511 Bungee Jumping (物理知识)
J - Jime Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit Status Practice HDU 1155Once again, James Bond is fleeing from some evil people who原创 2016-08-14 14:47:17 · 347 阅读 · 0 评论 -
ZZULIOJ 1917 E
1917: ETime Limit: 1 Sec Memory Limit: 128 MBSubmit: 108 Solved: 13SubmitStatusWeb BoardDescription晴天有非常严重的选择恐惧症,每次吃饭前他都在纠结到底吃什么。。今天又到了吃饭的时候了。重光:我给你一个包含n个不同整数的序列a,如果它所有连续子序列的价值和是素数原创 2016-08-18 09:34:36 · 394 阅读 · 0 评论 -
51Nod 1298 圆与三角形 (计算几何)
1298 圆与三角形题目来源: HackerRank基准时间限制:1 秒 空间限制:131072 KB 分值: 0 难度:基础题 收藏 关注给出圆的圆心和半径,以及三角形的三个顶点,问圆同三角形是否相交。相交输出"Yes",否则输出"No"。(三角形的面积大于0)。Input第1行:一个原创 2016-08-18 17:24:09 · 867 阅读 · 0 评论 -
51Nod 1264 线段相交 (计算几何)
给出平面上两条线段的两个端点,判断这两条线段是否相交(有一个公共点或有部分重合认为相交)。 如果相交,输出"Yes",否则输出"No"。Input第1行:一个数T,表示输入的测试数量(1 <= T <= 1000)第2 - T + 1行:每行8个数,x1,y1,x2,y2,x3,y3,x4,y4。(-10^8 <= xi, yi <= 10^8)(直线1的两个端点为原创 2016-08-19 09:36:34 · 633 阅读 · 0 评论 -
CodeForces 686B Little Robber Girl's Zoo
B. Little Robber Girl's Zootime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputLittle Robber Girl likes to sca原创 2016-08-18 20:07:08 · 357 阅读 · 0 评论 -
CodeForces 703C Chris and Road
C. Chris and Roadtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAnd while Mishka is enjoying her trip...原创 2016-08-18 15:07:11 · 301 阅读 · 0 评论 -
CodeForces 705C Thor (模拟)
C. Thortime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThor is getting used to the Earth. As a gift Loki g原创 2016-08-18 11:17:59 · 599 阅读 · 0 评论 -
HDU 1058 Humble Numbers (思维)
Humble NumbersTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 23838 Accepted Submission(s): 10411Problem DescriptionA number whos原创 2016-08-05 21:36:54 · 457 阅读 · 0 评论 -
Light OJ 1369 Answering Queries (思维)
H - Answering QueriesTime Limit:3000MS Memory Limit:32768KB 64bit IO Format:%lld & %lluSubmit Status Practice LightOJ 1369 uDebugAppoint description: System Crawler (Jul 31, 201原创 2016-08-02 19:53:27 · 293 阅读 · 0 评论 -
CodeForces 689A Mike and Cellphone
A. Mike and Cellphonetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputWhile swimming at the beach, Mike has原创 2016-08-15 20:57:03 · 730 阅读 · 0 评论 -
HDU 5480 Conturbatio
ConturbatioTime Limit: 6000/3000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 970 Accepted Submission(s): 438Problem DescriptionThere are many r原创 2016-08-19 17:25:03 · 390 阅读 · 0 评论 -
ZZULI OJ 1899 985的最大和难题
1899: 985的最大和难题Time Limit: 1 Sec Memory Limit: 128 MBSubmit: 298 Solved: 34SubmitStatusWeb BoardDescription985有2 * n - 1个整数,他每次可以将其中n个数变号,操作次数不限,问他可以得到的最大和。Input第一行输入一个整数原创 2016-08-09 15:59:50 · 298 阅读 · 0 评论 -
CodeForces 699B One Bomb
B. One Bombtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given a description of a depot. It is a原创 2016-08-13 10:21:58 · 247 阅读 · 0 评论 -
CodeForces 701B Cells Not Under Attack
B. Cells Not Under Attacktime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputVasya has the square chessboard o原创 2016-08-12 15:58:08 · 339 阅读 · 0 评论 -
HDU 1046 Gridland
GridlandTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 5624 Accepted Submission(s): 2563Problem DescriptionFor years, comput原创 2016-06-11 16:08:18 · 358 阅读 · 0 评论 -
HDU 2802 F(N)
F(N)Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4531 Accepted Submission(s): 1585Problem DescriptionGiving the N, can y原创 2016-06-15 18:15:23 · 542 阅读 · 0 评论 -
HDU 1165 Eddy's research II
Eddy's research IITime Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 4141 Accepted Submission(s): 1545Problem DescriptionAs is k原创 2016-06-15 22:45:52 · 475 阅读 · 0 评论 -
HDU 1271 整数对
整数对Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3243 Accepted Submission(s): 1150Problem DescriptionGardon和小希玩了一个游戏,Gardon原创 2016-07-19 21:21:20 · 919 阅读 · 0 评论