原创 範例必讀 (二)[簡單佈局 居中 body 寬度 切圖擺放1.0]
index.php: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" http://www.w3.org/TR/xhtml1/DTD/xhtml1-tran
原创 hdu 2064 漢諾3
#include<iostream> using namespace std; int main(){ int n; long long nn[35];nn[1]=2; for(int i=2;i<=35;i++){ nn[i
原创 hdu 2072 單詞數統計 sscanf() 函數
set() stl sscanf() 一般
原创 hdu1027 全排列 qsort
qsort 有4個參:#include<iostream> #include<stdlib.h> using namespace std;//jus
原创 範例必讀 (一)[流體佈局-隨窗口改變大小]
line-height屬性 : 控制行高 * {padding:0; margin:0; } index.html: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Tran
原创 hdu 1050 重疊 rom
Moving Tables #include<stdio.h> #include<string.h> #define N 210 int room[N]; void swap(int &a,int &b){ int c;
原创 hdu1099 lottery 假分式 字符串函數 strncpy sprintf 函數 數字輸入字符數組 公約數
#include <cstdlib> #include <cstdio> #include <cassert> #include <cstring> #include <algorithm> long long GC
原创 ACM常見算法分類
ACM常見算法分類 1. 基本算法: 1) 枚舉法 2) 貪心法 3) 遞歸與分治法 4) 遞推 2.動態規劃: 1) 揹包問題 2) 最長公共
原创 hdu 1009 肥胖鼠 貪心(一) sort 排序函數
#include<iostream> #include<iomanip> #include<algorithm> using namespace std; struct Trade { int j,f; double
原创 acm 調試
此教程是針對codeblocks的,請大家先安裝 codeblock8.02 別裝第十版,不穩定。下8.02版就行。 下載地址: http://sourceforge.net/projects/codeblocks/files/
原创 bjfu 1006 bool 排序
#include<iostream> #define n 100010 using namespace std; bool c1[100005]; int main(){ int t; cin>>t; while
原创 bjfu 1009
#include<iostream> using namespace std; int main(){ int s[100]; int *a; int n; while(cin>>n){memset(s,0,sizeof(s
原创 hdu 1049 jump worm
#include<iostream> using namespace std; int main(){ int n,u,d,time=0; while(cin>>n>>u>>d){ if(n==0) break; t
原创 vs 2010 debug 利器
http://apps.hi.baidu.com/share/detail/32170259
原创 高雅 div 樣式
#container{ margin: 0 auto; align:center; width:300px; border: 1px solid #D0D0D0; -webkit-box-shadow: 0 0 8px