HDU Bombing (STL multiset+map)
題意:給你 n 個坐標(x,y),m 個詢問(c,d) c==0,求出x==d有多少個,並刪除這些點; c==1,求出y==d有多少個,並刪除這些
[ACM] 1016 Prime Ring Problem (深度優先搜索)
Prime Ring Problem Problem Description A ring is compose of n circles a
ZOJ3669:Japanese Mahjong I
Mahjong is a game of skill, strategy and calculation and involves a certain d
ZOJ3671:Japanese Mahjong III
Mahjong is a game of skill, strategy and calculation and involves a certain d
leetcode第一刷_Permutation Sequence
這道題還挺好的,如果你的思路是每次生成一個全排列,然後累計到k次,那麼停下來吧,肯定超時了親。。 微軟今年的筆試題裡有一道類似的,我之前已經
HDU3920:Clear All of Them I(狀態壓縮)
Problem Description Acmers have been the Earth Protector against the evil ene
strcpy函數導致release版程序崩潰
最近在寫一個讀取模型文件的小程序。很隨意的使用了strcpy函數進行char字符數組的拷貝,這個數組是需要傳遞給PostMessage作為WPARAM的參數。代
open/fopen read/fread write/fwrite區別
fopen /open區別 UNIX環境下的C 對二進制流文件的讀寫有兩套班子:1) fopen,fread,fwrite ; 2) open