zoj 1610 Count the Colors【暴力亂搞】

連結: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

POJ 1860 Currency Exchange【bellman_ford判斷是否有正環——基礎入門】

連結: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

[USACO 3.1.6]郵票【同上:還是完全背包】CSUST 1084

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

SDUT OJ 2693 Babelfish (map練習)

這是一道典型的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,

hdu 2152 Fruit 【分組背包解母函數——滾動數組最佳化陷阱問題】

連結: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

POJ 2049 Finding Nemo

這道題各種憂傷啊,一開始做的時候想用三維數組來標記圖中的元素的,但是實現起來很麻煩又放棄了啊、後來用了二維數組存,將邊用點來表示、、、但是由於心情不佳,建圖就建了一下午啊,好不容易建出圖來,在BFS的時候又出現了問題啊、、、沒有設定邊界導致不好跳出啊、、而且是用的簡單的隊列所以時間也很慢啊、、後來看了同學寫的,用了BFS+優先隊列就過了啊、、中間還手殘了一次以為別人的出現問題了啊、、、哎,反正各種憂傷啊!!!菜鳥苦逼啊、、、、                              

hdu 2544 最短路【裸題】

連結: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

hdu 3665 Seaside【裸最短路】

連結: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

hdu 1058 Humble Numbers【醜數】

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

hdu 1869 六度分離【裸最短路】

連結: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

hdu 1025 Constructing Roads In JGShining’s Kingdom【即求最長上升子序列】

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

POJ 1308 hdu 1325 Is It A Tree?【並查集+入度 判斷一個有向圖是樹】

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

歸併排序和快速排序比較【演算法設計與分析實驗報告】

       下面的原始碼是修改的了時間差精確到了納秒層級的了,但是還是感覺很有誤差。無論怎麼測,總是快排比歸併快,即使是測試資料的數組長度在10以內。        前面一樣的程式寫的是時間精確到微秒級的,數組長度大概在一萬以內的,就是歸併排序快了,大於這個長度的快速排序比較快。綜合上面的情況,數組小時,二者時間差也不會太多,所以個人認為還是快速排序比較好了,唉還是覺得歸併比較簡單好寫,弱爆了啊。。。#include<cstdio>#include<Windows.h>

zoj 3356 Football Gambling II【枚舉+精度問題】

題目: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

POJ 1088 滑雪【貪心解DP】

連結: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喜歡滑雪百這並不奇怪,

hdu 2955 Robberies【經典01背包】

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

hdu 2112 Today【F – map + Floyd – 入門訓練】

HDU TodayTime Limit: 15000/5000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 9623    Accepted Submission(s): 2297Problem

POJ 3624 Charm Bracelet【裸01背包和關於貪心解 01 背包問題的思考】

原題連結: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

POJ 3259 Wormholes【bellman_ford判斷負環——基礎入門題】

連結: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

hdu 1541 Stars【樹狀數組簡單應用】

連結: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

總頁數: 61357 1 .... 19229 19230 19231 19232 19233 .... 61357 Go to: 前往

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.