Time of Update: 2018-12-03
連結:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=1610http://acm.hust.edu.cn/vjudge/contest/view.action?cid=28619#problem/FCount the ColorsTime Limit: 2 Seconds Memory Limit: 65536 KBPainting some colored segments on a line, some
Time of Update: 2018-12-03
連結:http://poj.org/problem?id=1860http://acm.hust.edu.cn/vjudge/contest/view.action?cid=22010#problem/ACurrency ExchangeTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 16244 Accepted: 5656DescriptionSeveral currency exchange points are
Time of Update: 2018-12-03
1084: [USACO 3.1.6]郵票Time Limit: 1 Sec Memory Limit: 64 MBSubmit: 122 Solved: 33SubmitStatusWeb BoardDescription已知一個 N 枚郵票的面值集合(如,{1 分,3 分})和一個上限 K —— 表示信封上能夠貼 K 張郵票。計算從 1 到 M 的最大連續可貼出的郵資。 例如,假設有 1 分和 3 分的郵票;你最多可以貼 5 張郵票。很容易貼出 1 到 5 分的郵資(用 1
Time of Update: 2018-12-03
這是一道典型的map但也可以用字典樹與排序二叉樹A、、、嘿嘿題目描述You have just moved from Waterloo to a big city. The people here speak an incomprehensible dialect of a foreign language. Fortunately, you have a dictionary to help you understand them. 輸入Input consists of up to 100,
Time of Update: 2018-12-03
連結:http://acm.hdu.edu.cn/showproblem.php?pid=2152http://acm.hust.edu.cn/vjudge/contest/view.action?cid=28708#problem/EFruitTime Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2632 Accepted
Time of Update: 2018-12-03
這道題各種憂傷啊,一開始做的時候想用三維數組來標記圖中的元素的,但是實現起來很麻煩又放棄了啊、後來用了二維數組存,將邊用點來表示、、、但是由於心情不佳,建圖就建了一下午啊,好不容易建出圖來,在BFS的時候又出現了問題啊、、、沒有設定邊界導致不好跳出啊、、而且是用的簡單的隊列所以時間也很慢啊、、後來看了同學寫的,用了BFS+優先隊列就過了啊、、中間還手殘了一次以為別人的出現問題了啊、、、哎,反正各種憂傷啊!!!菜鳥苦逼啊、、、、
Time of Update: 2018-12-03
連結:http://acm.hdu.edu.cn/showproblem.php?pid=2544http://acm.hust.edu.cn/vjudge/contest/view.action?cid=29015#problem/A最短路Time Limit: 5000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 22670 Accepted
Time of Update: 2018-12-03
連結:http://acm.hdu.edu.cn/showproblem.php?pid=3665http://acm.hust.edu.cn/vjudge/contest/view.action?cid=29015#problem/CSeasideTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 944 Accepted
Time of Update: 2018-12-03
DP&&英語==題目連結:http://acm.hdu.edu.cn/showproblem.php?pid=1058Humble NumbersTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 9933 Accepted Submission(s): 4291Problem DescriptionA number
Time of Update: 2018-12-03
連結:http://acm.hdu.edu.cn/showproblem.php?pid=1869http://acm.hust.edu.cn/vjudge/contest/view.action?cid=29015#problem/D六度分離Time Limit: 5000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3036 Accepted
Time of Update: 2018-12-03
DP(呃,兩邊不交叉修路的那道。。。)題目連結:http://acm.hdu.edu.cn/showproblem.php?pid=1025Constructing Roads In JGShining's KingdomTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 9069 Accepted Submission(s): 257
Time of Update: 2018-12-03
POJ 1308hdu 1325Is It A Tree?Time Limit: 1000MS Memory Limit: 10000KTotal Submissions: 17384 Accepted: 5956DescriptionA tree is a well-known data structure that is either empty (null, void, nothing) or is a set of one or more nodes connected by
Time of Update: 2018-12-03
下面的原始碼是修改的了時間差精確到了納秒層級的了,但是還是感覺很有誤差。無論怎麼測,總是快排比歸併快,即使是測試資料的數組長度在10以內。 前面一樣的程式寫的是時間精確到微秒級的,數組長度大概在一萬以內的,就是歸併排序快了,大於這個長度的快速排序比較快。綜合上面的情況,數組小時,二者時間差也不會太多,所以個人認為還是快速排序比較好了,唉還是覺得歸併比較簡單好寫,弱爆了啊。。。#include<cstdio>#include<Windows.h>
Time of Update: 2018-12-03
題目:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3356http://acm.hust.edu.cn/vjudge/contest/view.action?cid=26732#problem/DFootball Gambling IITime Limit: 3 Seconds Memory Limit: 65536 KBThe 2010 FIFA World Cup toke place between 1
Time of Update: 2018-12-03
連結:http://poj.org/problem?id=1088http://acm.hust.edu.cn/vjudge/contest/view.action?cid=28508#problem/E滑雪Time Limit: 1000MS Memory Limit: 65536KTotal Submissions: 67899 Accepted: 24981DescriptionMichael喜歡滑雪百這並不奇怪,
Time of Update: 2018-12-03
DP(關於搶銀行機率的那道==) 題目連結:http://acm.hdu.edu.cn/showproblem.php?pid=2955RobberiesTime Limit: 2000/1000 MS(Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s):4778 Accepted Submission(s): 1808Problem DescriptionThe aspiringRoy
Time of Update: 2018-12-03
HDU TodayTime Limit: 15000/5000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 9623 Accepted Submission(s): 2297Problem
Time of Update: 2018-12-03
原題連結:http://poj.org/problem?id=3624我的連結:http://acm.hust.edu.cn/vjudge/contest/view.action?cid=20437#problem/A歡迎來水Charm BraceletTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 14963 Accepted: 6840DescriptionBessie has gone to the mall's
Time of Update: 2018-12-03
連結:http://poj.org/problem?id=3259http://acm.hust.edu.cn/vjudge/contest/view.action?cid=22010#problem/BWormholesTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 25079 Accepted: 8946DescriptionWhile exploring his many farms, Farmer John has
Time of Update: 2018-12-03
連結:http://acm.hdu.edu.cn/showproblem.php?pid=1541http://acm.hust.edu.cn/vjudge/contest/view.action?cid=28619#problem/CStarsTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3474 Accepted