原创 賽碼 基本算法 翻轉數組

不知爲何在賽碼上提交了看不到提交記錄...就來這兒保存一下 題目:   code: #include<bits/stdc++.h> using namespace std; int main(){ int n; in

原创 賽碼 軍訓隊列

題目:   code: 放在了dp欄裏其實暴力一發就可以AC #include<bits/stdc++.h> using namespace std; int main(){ int n,m,ans[5020]; cin>>n;

原创 poj 3678 2SAT+挑戰板子

題目: Katu Puzzle Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 10066   Accepted: 3768 Description K

原创 賽碼 擊鼓傳花 dp

題目:   code: #include<bits/stdc++.h> using namespace std; int main(){ int n,m,dp[32][32]; memset(dp,0,sizeof(dp));

原创 賽碼 基礎算法

題目描述: code: #include <bits/stdc++.h> using namespace std; int main(){ int n; while(cin>>n){ int now=1;

原创 poj 1182 食物鏈 並查集

題目: 食物鏈 Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 74074   Accepted: 21994 Description 動物王國中有三類

原创 codeforces 701 c 尺取法

題目: C. They Are Everywhere time limit per test 2 seconds memory limit per test 256 megabytes input standar

原创 hdu 1272 判斷是否爲一棵無向樹

題目: 小希的迷宮 Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 51

原创 DBSCAN 算法初探

一種用於聚類的常用算法,相較於Kmeans,優點有: 無需事先指定聚類組數 對噪聲不敏感 對原始數據集的分佈要求低 缺點: 數據量較大時處理速度慢 原理詳解: http://shiyanjun.cn/archives/1288.htm

原创 C++中string類下的begin,end,rbegin,rend的用法

原文鏈接:http://blog.csdn.net/z2014jw/article/details/50810569 begin  語法:iterator begin();  解釋:begin()函數返回一個迭代器,指向字符串的第一個

原创 hdu 5672 尺取法模擬

題目: String Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 1

原创 hdu 5289 ST表+尺取法

題目: Assignment Time Limit: 4000/2000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others) Total Submission(s

原创 hdu 5889 最短路+裸最小割

題目: Barricade Time Limit: 3000/1000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others) Total Submission(s)

原创 hdu 1896 優先隊列

題目: Stones Time Limit: 5000/3000 MS (Java/Others)    Memory Limit: 65535/32768 K (Java/Others) Total Submission(s): 2

原创 codeforces 131c 組合數

題目: C. The World is a Theatre time limit per test 2 seconds memory limit per test 256 megabytes input standard