编程题——其他
文章平均质量分 82
David_Jett
我要变得很强!2017-8-30
展开
-
ZOJ 2104 Let the Ballon Rise(map解法)
题意很简单,就是统计给定字符串序列中出现 最多的串。利用map特性很容易解决问题,对于一些思路比较奇特的题,stl的容器还是比较不错的选择!代码:#include #include #include using namespace std;int main(){ int n; while(cin>>n&&n) { map cnt;原创 2015-02-03 22:00:02 · 962 阅读 · 0 评论 -
ZOJ 3328 WuXing
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3328题面:Wu XingTime Limit: 1 Second Memory Limit: 32768 KBIntroductionThe Wu Xing, or the Five Movements原创 2015-04-22 21:11:47 · 1286 阅读 · 0 评论 -
CPP 1077 火星数排序
题目链接: http://cpp.zjut.edu.cn/ShowProblem.aspx?ShowID=1077题面:火星数排序 Time Limit:1000MS Memory Limit:32768KDescription:哈哈,大家对地球上的排序规则都比较清楚了吧!可是火星上的规则跟地球上的不一样。地球上的十个数字的顺序是{0,1,2,3,4,原创 2015-04-24 22:33:20 · 1579 阅读 · 2 评论 -
CPP 1373 Easy as A+B(冒泡排序)
题目链接: http://cpp.zjut.edu.cn/ShowProblem.aspx?ShowID=1373题面:Easy as A+B Time Limit:1000MS Memory Limit:32768KDescription:These days, I am thinking about a question, how can I ge原创 2015-04-29 23:15:51 · 807 阅读 · 0 评论 -
ZOJ 3819 Average Score
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3819题面:Average ScoreTime Limit: 2 Seconds Memory Limit: 65536 KBBob is a freshman in Marjar University. He is原创 2015-05-03 22:56:43 · 1009 阅读 · 0 评论 -
ZOJ 3827 Information Entropy
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3827题面:Information EntropyTime Limit: 2 Seconds Memory Limit: 65536 KB Special JudgeInformation Theo原创 2015-05-03 23:00:39 · 801 阅读 · 0 评论 -
hihoCoder挑战赛11 益智游戏
题目链接:http://hihocoder.com/problemset/problem/1165题面:益智游戏时间限制:20000ms单点时限:1000ms内存限制:256MB描述幽香今天心情不错,正在和花田里的虫子玩一个益智游戏。这个游戏是这样的,对于一个数组A,幽香从A中选择一个数a,虫子从A中选择一原创 2015-05-03 23:10:49 · 1157 阅读 · 2 评论 -
HDU 5104 Primes Problem
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5104题面:Primes ProblemTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1776 Acce原创 2015-05-04 23:28:47 · 927 阅读 · 0 评论 -
POJ 2151 Check the difficulty of problems
题目链接:POJ 2151 Check the difficulty of problems题面:Check the difficulty of problemsTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 5519 Accepted: 2431原创 2015-05-08 23:50:24 · 780 阅读 · 0 评论 -
HDU 5078 Osu!
题目链接:hdu 5078 Osu!题面:Osu!Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others)Total Submission(s): 1058 Accepted Submission(s): 550Special Judg原创 2015-05-11 23:12:08 · 935 阅读 · 0 评论 -
HDU 4461 The Power of Xiangqi
题目链接:The Power of Xiangqi题面:The Power of XiangqiTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1780 Accepted Submission(s):原创 2015-05-18 16:36:45 · 794 阅读 · 0 评论 -
HDU 4961 Boring Sum
题目链接:Boring Sum题面:Boring SumTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 1152 Accepted Submission(s): 543Problem原创 2015-06-09 23:00:41 · 1063 阅读 · 0 评论 -
ZOJ 3333 Guess the price
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=3758题面:Guess the PriceTime Limit: 1 Second Memory Limit: 32768 KBIn the television program "Shopping Street原创 2015-04-21 23:18:48 · 987 阅读 · 0 评论 -
ZOJ 3323Somali Pirates
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3323题面:Somali PiratesTime Limit: 1 Second Memory Limit: 32768 KBIt is said that the famous Somali Pir原创 2015-04-20 16:12:06 · 1348 阅读 · 0 评论 -
ZOJ 2850 Beautidul Meadow(水题)
题意: 给定的图中不能全为1,且不能有相邻的0(上下左右相邻)。代码:#includeusing namespace std;int main(){ bool map[12][12]; int n,m; while(cin>>n>>m&&(n||m)) { bool flag=false,ans=true;//flag代表是否出现0,a原创 2015-02-12 22:25:30 · 1316 阅读 · 0 评论 -
2015广工网络赛初赛-Problem C: slamdunk正在做菜
题面:Problem C: slamdunk正在做菜Description广工的slamdunk可谓是人生赢家,据传说他现在即将拥有一个girlfriend,并且在感情的驱使下他甚至开始学起了做菜! 现在他想为girlfriend做N道菜,每道菜做出来需要Ai分钟,slamdunk一分钟最多能煮M道菜,请问他做完这N道菜所需的最短时间 是多少?(如果你能帮他解决原创 2015-03-15 22:43:23 · 913 阅读 · 0 评论 -
PAT-中国大学MOOC-陈越、何钦铭-数据结构2015春习题集-00-自测2. 素数对猜想 (20)
题目链接:http://www.patest.cn/contests/mooc-ds2015spring/00-%E8%87%AA%E6%B5%8B2题意: 判断在不超过给定数的范围内,有多少对素数对。因为看着时间只有400ms,代码写得有些投机取巧,速度倒是快了不少。耗时: 代码: #include #include #includ原创 2015-03-23 15:25:06 · 2532 阅读 · 0 评论 -
2015浙工大校赛-Problem K: 数圈圈
题目链接:http://acm.zjut.edu.cn/onlinejudge/problem.php?cid=1101&pid=10题面:Problem K: 数圈圈Time Limit: 1 Sec Memory Limit: 32 MBSubmit: 222 Solved: 106[Submit][Status][Web Board]Descr原创 2015-03-30 15:31:12 · 1384 阅读 · 0 评论 -
ZOJ 3782 Ternary Calculation
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3782题意: 求给定的算式的结果。法一: 因为固定三个数字,两个运算符,直接if else就行。代码:#includeusing namespace std;int main(){ int t; char x,原创 2015-04-04 10:52:24 · 838 阅读 · 0 评论 -
ZOJ 3708 Density of Power Network(水题)
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3708题意: 题意挺简单的,就是数一下有多少种线路,并处以公交车的数量。题目的图很吓人,如果被这唬了的话就惨了,省赛的时候每道题都应该仔细看过,以免造成不必要的损失。解法一: 队友用的方法是用一张二维图来表示,如果对应位置已经被标记过了原创 2015-04-06 20:27:23 · 955 阅读 · 0 评论 -
ZOJ 3776 Pokemon Master
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=5263题意: 比较Calem和Serena手上牌的总和的大小,谁大就输出谁的名字,相同输出Draw。代码:#includeusing namespace std;int main(){ int t,n,m,sum1,sum2,tmp; c原创 2015-04-10 21:29:18 · 879 阅读 · 0 评论 -
ZOJ 3767 Elevator
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=5230题面:ElevatorTime Limit: 2 Seconds Memory Limit: 65536 KBHow time flies! The graduation of this year is aroun原创 2015-04-10 21:36:47 · 641 阅读 · 0 评论 -
ZOJ 3787 Access System
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=5274题面:Access SystemTime Limit: 2 Seconds Memory Limit: 65536 KBFor security issues, Marjar University has an a原创 2015-04-10 22:20:56 · 1104 阅读 · 0 评论 -
ZOJ 3610 Yet Another Story of Rock-paper-scissors
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3610题面:Yet Another Story of Rock-paper-scissorsTime Limit: 2 Seconds Memory Limit: 65536 KBAkihisa and Hi原创 2015-04-16 21:37:32 · 1251 阅读 · 0 评论 -
ZOJ 3603 Draw Something Cheat
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3603题面:Draw Something CheatTime Limit: 2 Seconds Memory Limit: 65536 KBHave you played Draw Something? It's c原创 2015-04-18 18:37:29 · 1168 阅读 · 0 评论 -
HDU 5272 Dylans loves numbers
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5272题面:Dylans loves numbersTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 241原创 2015-06-23 22:34:53 · 755 阅读 · 0 评论 -
HDU 5264 pog loves szh I
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5264题面:pog loves szh ITime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 420 Acce原创 2015-06-29 21:53:26 · 668 阅读 · 0 评论 -
ZOJ 3932 Handshakes
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3932题面:HandshakesTime Limit: 2 Seconds Memory Limit: 65536 KBLast week, n students participated in the annual原创 2016-04-10 22:11:41 · 1132 阅读 · 0 评论 -
UVA 11636 Hello World!
题面: When you first made the computer to print the sentence “Hello World!”, you felt so happy, notknowing how complex and interesting the world of programming and algorithm will turn out to be.The原创 2016-05-04 22:16:21 · 816 阅读 · 0 评论 -
HDU 1130 How Many Trees?
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1130题面:How Many Trees?Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3426 Acc原创 2016-05-03 23:27:05 · 851 阅读 · 0 评论 -
UVA 10970 Big Chocolate(水题)
题面:Big ChocolateMohammad has recently visited Switzerland. As he loves his friends very much, he decided to buy some chocolate for them, but as this fine chocolate is very expensive(You know原创 2016-05-05 23:06:44 · 942 阅读 · 0 评论 -
HDU 5703 Desert(水题)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5703DesertTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 212 Accepted Submission(原创 2016-07-04 19:29:58 · 766 阅读 · 0 评论 -
【打CF,学算法——二星级】CodeForces 282C XOR and OR (观察)
题目链接:CF 282C题面:C. XOR and ORtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe Bitlandians are quite we原创 2016-07-08 10:05:25 · 1072 阅读 · 0 评论 -
【打CF,学算法——三星级】CodeForces 689C Mike and Chocolate Thieves (二分)
题目链接:CF 689C题面:C. Mike and Chocolate Thievestime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputBad原创 2016-07-08 10:55:19 · 1175 阅读 · 0 评论 -
【打CF,学算法——一星级】CodeForces 74A Room Leader (水题)
题目链接:CF 74A题面:A. Room Leadertime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputLet us remind you part原创 2016-07-08 16:34:34 · 711 阅读 · 0 评论 -
【打CF,学算法——一星级】CodeForces 227B Effective Approach (水题)
题目链接:CF 227B题面:B. Effective Approachtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputOnce at a team原创 2016-07-08 17:06:29 · 823 阅读 · 0 评论 -
【打CF,学算法——二星级】Codeforces 22B Bargaining Table(区域和)
题目链接:CF 22B题面:B. Bargaining Tabletime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputBob wants to put原创 2016-07-12 09:16:15 · 968 阅读 · 0 评论 -
HDU 5726 GCD(RMQ+二分,详解,ST算法)
题目链接:HDU 5726题面:GCDTime Limit: 10000/5000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 1151 Accepted Submission(s): 354Problem Description原创 2016-07-20 16:58:50 · 1607 阅读 · 0 评论 -
PAT-PAT (Advanced Level) Practise String Subtraction (20)【一星级】
题目链接:http://www.patest.cn/contests/pat-a-practise/1050题面:1050. String Subtraction (20)时间限制10 ms内存限制65536 kB代码长度限制16000 B判题程序Standard原创 2015-11-19 23:00:51 · 618 阅读 · 0 评论 -
PAT-PAT (Advanced Level) Practise 1006. Sign In and Sign Out (25) (简单题)【一星级】
题目链接:http://www.patest.cn/contests/pat-a-practise/1006题面:1006. Sign In and Sign Out (25)At the beginning of every day, the first person who signs in the computer room will unlock the原创 2015-08-19 19:51:19 · 938 阅读 · 0 评论