原创 poj 1129 dfs

Channel Allocation Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 10540   Accepted: 5369 Description Wh

原创 poj 1844 數學問題

Sum Time Limit: 1000MS   Memory Limit: 30000K Total Submissions: 9591   Accepted: 6281 Description Consider the natur

原创 poj 2752 KMP

Seek the Name, Seek the Fame Time Limit: 2000MS   Memory Limit: 65536K Total Submissions: 9153   Accepted: 4338 Descr

原创 poj 2104 (qsort cmp)

K-th Number Time Limit: 20000MS   Memory Limit: 65536K Total Submissions: 30949   Accepted: 9484 Case Time Limit: 2000

原创 poj 1833

排列 Time Limit: 1000MS   Memory Limit: 30000K Total Submissions: 13979   Accepted: 5712 Description 題目描述: 大家知道,給出正整數n

原创 poj 1519

Digital Roots Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 24050   Accepted: 7970 Description The dig

原创 poj 1256 next_permutation

Anagram Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 16165   Accepted: 6589 Description You are to wr

原创 poj 1163

The Triangle Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 32155   Accepted: 19016 Description 7 3

原创 poj 2244

Eeny Meeny Moo Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 2907   Accepted: 1999 Description Surely

原创 poj 2141

  Message Decowding Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 10878   Accepted: 6016 Description T

原创 STL map

關於STL中map的用法剖析【完整版】 1 map概述     STL(Standard Template Library 標準模版庫)是C++標準程序庫的核心,它深刻影響了標準程序庫的整體結構。STL是一個範型(generic)程序

原创 poj2159 字符串

Ancient Cipher Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 23921   Accepted: 7990 Description Ancien

原创 poj 1222 【枚舉】【遍歷搜索】

本題可以用高斯消元法求解。   或者使用如下方法進行遍歷搜索。   1.枚舉第一行的情況: 可能是 0 0 0 0 0 0               1 0 0 0 0 0               0 1 0 0 0 0     

原创 poj 3176 1163【動態規劃】【入門】

典型動態規劃入門問題。 狀態轉移方程爲 dp[i][j]=p[i][j]+max{dp[i+1][j],dp[i+1][j+1]} #include<stdio.h> #define M 110 #define max(a,b) a>b?

原创 poj 2533 【動態規劃】【最大上升子序列】

  求最大上升子序列問題 老師今天上課剛講過的問題 。 用動態規劃求解。   dp[0]=1; dp[i]=max{dp[j](0<=j<i,j<i&&d[j]<d[i])};    #include<iostream> using na