思维
文章平均质量分 79
Bear1997
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
【codeforces】-445A- DZY Loves Chessboard(思维)
A. DZY Loves Chessboardtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputDZY loves chessboard, and he enjoys原创 2016-10-31 22:40:49 · 604 阅读 · 0 评论 -
【zzuli-oj】-1907-小火山的宝藏收益(树,STL,思维)
1907: 小火山的宝藏收益Time Limit: 1 Sec Memory Limit: 128 MBSubmit: 123 Solved: 27SubmitStatusWeb BoardDescription 进去宝藏后, 小火山发现宝藏有N个房间,且这n个房间通过N-1道门联通。 每一个房间都有一个价值为Ai的宝藏, 但是每一个房间也都存在原创 2016-08-10 21:36:14 · 614 阅读 · 0 评论 -
【HDU】-5671-Matrix(思维,好)
MatrixTime Limit: 3000/1500 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 1398 Accepted Submission(s): 557Problem DescriptionThere is a matrix原创 2016-08-23 10:46:08 · 613 阅读 · 0 评论 -
【HDU】-5100-Chessboard(思维)
ChessboardTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1088 Accepted Submission(s): 464Problem DescriptionConsider the pro原创 2016-08-23 11:25:03 · 533 阅读 · 0 评论 -
【HDU】-5480-Conturbatio(思维,好)
ConturbatioTime Limit: 6000/3000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 943 Accepted Submission(s): 422Problem DescriptionThere are many r原创 2016-08-11 17:57:29 · 426 阅读 · 0 评论 -
【HDU】-5773-The All-purpose Zero(LIS变形,思维)
The All-purpose ZeroTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 1603 Accepted Submission(s): 770Problem Description?? get原创 2016-08-12 21:48:31 · 438 阅读 · 0 评论 -
【light-oj】-1006 - Hex-a-bonacci(思维)
1006 - Hex-a-bonacci PDF (English)StatisticsForumTime Limit: 0.5 second(s)Memory Limit: 32 MBGiven a code (not optimized), and necessary inputs, you h原创 2016-09-16 17:27:13 · 553 阅读 · 0 评论 -
【51Nod】-1009 - 数字1的数量(思维,好)
1009 数字1的数量基准时间限制:1 秒 空间限制:131072 KB 分值: 5 难度:1级算法题 收藏 关注给定一个十进制正整数N,写下从1开始,到N的所有正数,计算出其中出现所有1的个数。例如:n = 12,包含了5个1。1,10,12共包含3个1,11包含2个1,总共5个1。Input输入原创 2016-08-13 09:47:00 · 824 阅读 · 0 评论 -
【light-oj】-1189 - Sum of Factorials(思维,数学)
1189 - Sum of Factorials PDF (English)StatisticsForumTime Limit: 0.5 second(s)Memory Limit: 32 MBGiven an integer n, you have to find whether it can b原创 2016-09-17 14:52:04 · 550 阅读 · 0 评论 -
【Light-OJ】-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-06 17:06:56 · 434 阅读 · 0 评论 -
【HDU】-4506-小明系列故事——师兄帮帮忙(快速幂+思维)
小明系列故事——师兄帮帮忙Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 5624 Accepted Submission(s): 1545Problem Description 小明自从告别了ACM原创 2016-10-30 17:58:39 · 530 阅读 · 0 评论 -
【Codeforces】-632B-Alice, Bob, Two Teams(模拟,思维)
B. Alice, Bob, Two Teamstime limit per test1.5 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAlice and Bob are playing a game原创 2016-08-22 21:21:31 · 658 阅读 · 0 评论 -
【HDU】-1214-圆桌会议(数学,思维)
圆桌会议Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 4713 Accepted Submission(s): 3308Problem DescriptionHDU ACM集训队的队员在暑假集训时经常原创 2016-11-15 16:25:26 · 512 阅读 · 0 评论 -
【Codeforces-233B】-Non-square Equation(思维,公式转换)
B. Non-square Equationtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputLet's consider equation:x2 + s(x)·x原创 2016-11-15 16:38:18 · 624 阅读 · 0 评论 -
【HDU】-1005-Number Sequence(数学,规律)
Number SequenceTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 159015 Accepted Submission(s): 39002Problem DescriptionA numbe原创 2016-11-15 17:08:52 · 624 阅读 · 0 评论 -
【Codeforces-402C】-Dishonest Sellers(思维)
C. Dishonest Sellerstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputIgor found out discounts in a shop and原创 2017-02-27 21:08:39 · 561 阅读 · 0 评论 -
【Codeforces-402B】-Weird Rounding(数学,思维)
B. Weird Roundingtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputPolycarp is crazy about round numbers. He原创 2017-02-27 21:12:07 · 422 阅读 · 0 评论 -
【Codeforces-402A】-Pupils Redistribution(思维)
A. Pupils Redistributiontime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputIn Berland each high school student原创 2017-02-27 21:14:33 · 464 阅读 · 0 评论 -
【HPU-OJ】Divide the pears(数学,思维)
Divide the pears时间限制: 1 Sec 内存限制: 128 MB提交: 14 解决: 13题目描述Macro非常喜欢吃梨,有一天他得到了ACMICPC组委会送给他的一筐梨子。他比较心疼学生,就打算把梨子分给学生吃。现在他要把M个梨子放到N个盘子里面 (我们允许有的盘子为空) ,你能告诉Macro有多少种分法吗?(请注意,如果有三个盘子,我们将原创 2017-02-23 18:41:02 · 1383 阅读 · 0 评论 -
【HPU-oj】-Triangles(锐角三角形个数,数学,思维)
Triangles限制: 1 Sec 内存限制: 128 MB提交: 33 解决: 8题目描述已知一个圆的圆周被N个点分成了N段等长圆弧,求任意取三个点,组成锐角三角形的个数。输入多组数据,每组数据一个N(N 输出对于每组数据,输出不同锐角三角形的个数。样例输入345样例输出105题原创 2017-02-23 19:27:39 · 1453 阅读 · 0 评论 -
【51nod】-1001 数组中和等于K的数对(思维)
1001 数组中和等于K的数对基准时间限制:1 秒 空间限制:131072 KB 分值: 5 难度:1级算法题 收藏 关注给出一个整数K和一个无序数组A,A的元素为N个互不相同的整数,找出数组A中所有和等于K的数对。例如K = 8,数组A:{-1,6,5,3,4,2,9,0,8},所有和等于8的数对包括(-1,9),(0,8),(2,原创 2017-12-07 17:33:46 · 433 阅读 · 0 评论 -
字符串相减 A-B
L1-011. A-B时间限制100 ms内存限制65536 kB代码长度限制8000 B判题程序Standard作者陈越本题要求你计算A-B。不过麻烦的是,A和B都是字符串 —— 即从字符串A中把字符串B所包含的字符全删掉,剩下的字符组成的就是字符串A-B。输入格式:输入在2行中先后给出字符串A和B。两字符串的长度都不超过104,并且保证每个字符串都是由可见的ASCII码和空白字符组成,最后以换...原创 2018-03-26 20:00:15 · 16790 阅读 · 0 评论 -
【ZZULI】-1998-985的数字难题(思维)
Problem G: 985的数字难题Time Limit: 1 Sec Memory Limit: 128 MBSubmit: 260 Solved: 88SubmitStatusWeb BoardDescription985有n个数,已知每次操作可以将其中不相同的两个数一个加一、一个减一,操作次数不限。问他最多可以得到多少个相同的数。Inpu原创 2016-08-03 21:52:16 · 791 阅读 · 0 评论 -
【Codeforces】-366A- Dima and Guards
点击打开题目A. Dima and Guardstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputNothing has changed since t原创 2016-06-15 21:10:57 · 610 阅读 · 0 评论 -
【Codeforces】-#222A-KShooshuns and Sequence(思维)
A. Shooshuns and Sequencetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputOne day shooshuns found a sequenc原创 2016-07-03 19:09:38 · 489 阅读 · 0 评论 -
【Codeforces】-222B-Cosmic Tables
B. Cosmic Tablestime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe Free Meteor Association (FMA) has got原创 2016-07-04 18:34:08 · 696 阅读 · 0 评论 -
【Codeforces】-698A-Vacations(贪心)
点击打开链接A. Vacationstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputVasya has n days of vac原创 2016-07-27 08:51:30 · 483 阅读 · 0 评论 -
【Poj】-3069-Saruman's Army(贪心)
Saruman's ArmyTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 7611 Accepted: 3888DescriptionSaruman the White must lead his army along a straight pa原创 2016-07-27 16:16:49 · 662 阅读 · 0 评论 -
【杭电-oj】-1013-Digital Roots(把一个数的每一位拆开相加直到和小于10)
Digital RootsTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 69401 Accepted Submission(s): 21689Problem DescriptionThe digita原创 2016-07-18 21:13:46 · 1010 阅读 · 2 评论 -
【杭电-oj】-5499-SDOI(结构体)
SDOITime Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 895 Accepted Submission(s): 358Problem DescriptionThe Annual National O原创 2016-07-19 20:08:06 · 473 阅读 · 0 评论 -
【杭电-oj】-1084-What Is Your Grade?(结构体)
What Is Your Grade?Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 10687 Accepted Submission(s): 3311Problem Description“Poin原创 2016-07-19 20:23:53 · 552 阅读 · 0 评论 -
【codeforces】#621B-Wet Shark and Bishops
点击打开题目Wet Shark and Bishopstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputToday, Wet Shark is given原创 2016-05-26 20:35:46 · 450 阅读 · 0 评论 -
【ZZULI】-1896-985的买饮料难题(思维)
Problem E: 985的买饮料难题Time Limit: 1 Sec Memory Limit: 128 MBSubmit: 233 Solved: 123SubmitStatusWeb BoardDescription天气太热了,985制定了对未来的规划即第i天喝a[i]瓶饮料。为了节约开支,他打听到了第i天每瓶饮料的价格p[i]。为了不让自己的规划原创 2016-08-03 21:37:13 · 610 阅读 · 0 评论 -
【codeforces】-699B-One Bomb(思维)
点击打开链接B. One Bombtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given a desc原创 2016-07-22 20:15:21 · 489 阅读 · 0 评论 -
【ZZULI】-1897-985的红绿灯难题(思维)
Problem F: 985的红绿灯难题Time Limit: 1 Sec Memory Limit: 128 MBSubmit: 207 Solved: 128SubmitStatusWeb BoardDescription已知红、绿、黄灯各持续r、g、y秒,985发现此时灯刚刚变绿,他想知道x秒后灯是什么颜色。Input第一行输入一个原创 2016-08-03 21:47:41 · 874 阅读 · 0 评论 -
【Codeforces】-699A-Launch of Collider(思维)
点击打开题目A. Launch of Collidertime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere will be a launch of a原创 2016-07-20 21:32:23 · 897 阅读 · 0 评论 -
【Codeforces】-615A-Bulbs(思维,模型:桶)
点击打开题目链接A. Bulbstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputVasya wants to turn on Christmas li原创 2016-07-22 08:57:42 · 465 阅读 · 0 评论 -
【Codeforces】-612B-HDD is Outdated Technology(思维)
点击打开题目链接B. HDD is Outdated Technologytime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputHDD hard drive原创 2016-07-22 09:10:09 · 425 阅读 · 0 评论 -
【Codeforces】-599B-Spongebob and Joke(思维)
点击打开链接B. Spongebob and Joketime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputWhile Patrick原创 2016-07-22 09:23:50 · 533 阅读 · 0 评论 -
【Codeforces】-701A-Cards(思维)
点击打开题目A. Cardstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere are n cards (n is eve原创 2016-08-05 21:50:51 · 795 阅读 · 0 评论
分享