原创 c轉換字符

  轉換說明及作爲結果的打印輸出%a 浮點數、十六進制數字和p-記數法(C99) %A    浮點數、十六進制數字和p-記法(C99) %c    一個字符 %d    有符號十進制整數 %e    浮點數、e-記數法 %E   

原创 關於AC自動機fail指針的靈感

  看之前先看下trie樹是怎麼構造的 樹上的詞分別是(從上到下) {  he , hers , his , she} 按圖所示分成3層   看到第三層 是"she" 其中, ①s指向root   ②h先找到s的fail指針,發現是,

原创 (鏈接)臺灣 國立臺灣師範大學 演算法筆記

http://www.csie.ntnu.edu.tw/~u91029/index.html

原创 C++ 改默認的棧大小

 #pragma comment(linker, "/STACK:102400000,102400000") poj上沒報錯 本機上可以用 僅限c++

原创 hdu 4033 Regular Polygon(2011成都網絡賽)

//正多邊形內有一點 //給出這點到多邊形各個頂點的距離 //求這個多邊形的邊長 //比賽時瞎了,各種精度     #include <iostream> #include <cstring> #include <cstdio> #inc

原创 POJ 3740 Easy Finding 詳細講解

POJ 3740 Easy Finding 轉載自http://hi.baidu.com/wangyu_cn/blog/item/69ad9e325a74b9a35edf0ecf.html 精確覆蓋問題 給定一個由0,1組成的矩

原创 POJ 1141 Brackets Sequence

#include <iostream> #include <queue> #include <cstring> #include <cstdio>

原创 POJ 1018 Communication System

複雜度太高 //============================================================================ // Name        : hello.cpp // Aut

原创 POJ1287 Networking

Prim //============================================================================ // Name        : hello.cpp // Aut

原创 POJ 3659 Cell Phone Network

樹形DP,(mark) //============================================================================ // Name        : hello.cpp /

原创 POJ 2418 Hardwood Species

是二叉查找樹入門 //============================================================================ // Name        : hello.cpp //

原创 POJ 1220 NUMBER BASE CONVERSION

模版題 //============================================================================ // Name        : hello.cpp // Auth

原创 POJ 3187 Backward Digit Sums

//========================================================================

原创 POJ 1589 Unix ls

看到題目很有熟悉感 剛好最近在玩Linux&Unix 模擬,注意細節 //============================================================================ // N

原创 POJ 3438 Look and Say

//========================================================================