
太菜,只能去Div2.(都做不完 ORZ。。
分別是 HDU:
5054 Alice and Bob
5055 Bob and math problem
5056 Boring count
5057 Argestes and Sequence
# 1001
碰面只能在坐標中間。
所以判斷一下就好了。
#include#include#include#include#include#include
# 1002
檢查數字,題解給的是貪心。
我DFS寫的。。居然沒人Hack我……
5
1 0 0 0 0
-1
這組數據小心了。
5
1 1 0 0 0
10001
還有這。
#include#include#include#include#include#include
# 1003 知道是維護一個數列。時間復雜度是O(n)的。
ORZ,寫了半天,還是沒寫出來,這周慢慢寫吧,先掛這。
#
wait...
#
# 1004 我用線段樹的,結果MLE??▋却嬗幸馑??
有人說可以試試 unsigned short 看能不能過。
慢慢交吧。反正在HDU41頁。
#
wait...
#
聲明:本網頁內容旨在傳播知識,若有侵權等問題請及時與本網聯系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com