Time of Update: 2018-12-07
/////////////////////////////////////////////////////////1068摩斯密碼//直接類比#include<iostream>#include<algorithm>using namespace std; char code[35][2][5]; //記錄29個摩斯密碼 char str[150]; //記錄輸入的原碼char change[
Time of Update: 2018-12-07
#include<iostream>using namespace std;char s[105][105],chu[105][105];char din[105];int k1,k2; int main(){ din[0]='0'; int k,n,i,j,n1,n2,a,b,c,num; cin>>n; while(n--) { k=0; i=0; memset(s,'/',sizeof(
Time of Update: 2018-12-07
///////////////////////////////////////////////////////////////////////猴子與香蕉//把每一種方塊化為三個,先排序,再用n^2的dp#include<iostream>#include<algorithm>using namespace std; struct block{ int x; int y; int height;}bl[100];void maxmin(int
Time of Update: 2018-12-07
如何撰寫數學建模論文--兼談數學建模競賽答卷要求 當我們完成一個數學建模的全過程後,就應該把所作的工作進行小結,寫成論文。撰寫數學建模論文和參加大學生數學建模競賽時完成答卷,在許多方面是類似的。事實上數學建模競賽也包含了學生寫作能力的比試,因此,論文的寫作是一個很重要的問題。首先要明確撰寫論文的目的。數學建模通常是根據實際需要而提出的,這就要求對建模全過程作一個全面的、系統的小結,使有關的技術人員(或競賽時的閱卷人員)讀了之後,相信模型假設的合理性,理解在建立模型過程中所用數學方法的適用性,
Time of Update: 2018-12-07
//////////////////////////////////////////////1068(其他進位是否迴文數)#include<iostream>using namespace std;unsigned int st[100]; //判斷數組st是否前len位是否為迴文數bool deter_palin(int len){ int i; bool flags=1; for(i=0;i<len/2;i++) { if(st[i]!
Time of Update: 2018-12-07
#include<iostream.h>#include<string.h>#include<math.h>#include<iomanip.h>char s[100];char chu[1000][100]; //由於每一次輸出chu,之後如果又使用chu的話,chu裡面的資料並
Time of Update: 2018-12-07
////////////////////////////////////////////////////////////FatMouse's Speed 白老鼠越大越慢//利用dp,與DNA序列相似 #include<iostream>using namespace std;int st[1001][2], output[1001]; class Mouse{public: int size; int speed; int No; bool
Time of Update: 2018-12-07
電腦護眼攻略步驟:
Time of Update: 2018-12-07
如何開始使用boost的跨平台thread庫(Linux)boost首頁:http://www.boost.org/在首頁點擊download進入sourceforge頁面下載,當前最新版本為boost_1_33_1,有多種檔案格式可供下載(包括.zip,
Time of Update: 2018-12-07
隨著上次的snmp_pp.lib檔案的編譯成功,我對於SNMP++的學習得以進一步學入,這次是學習SNMP++軟體包中的各種類,它們分別是Oid類、IpAddress和UdpAddress類、Vb類、Pdu類、Snmp類,通過對這幾種類的學習,最終我們可以通過SNMP++對支援SNMP管理的網路裝置(如CISCO的交換器)進行SNMP操作(比如GET等)。一、
Time of Update: 2018-12-07
////////////////////////////////////////////////////////帶括弧矩陣連乘的類比//使用stack來解決#include<iostream>#include<stack>#include<string>using namespace std; struct matrx{ int row; int col;}ma[30];char str[100000];int main(){ int n;
Time of Update: 2018-12-07
#include<iostream.h>#include<math.h>#include<iomanip.h>//using namespace std;int shu[100]; int main(){ int a,b,n,i,j,temp,jishu; double pair; while((cin>>n) && n!=0) { jishu=0; for(i=0;i<n;
Time of Update: 2018-12-07
/////////////////////////////////////////////////////////////////////////////Word Reversal//字元逆置#include<iostream.h>#include<string.h>char s[10000][1000];int i,j,k; int main(){ int m,n,jishu=0; cin>>m; while(m--) {
Time of Update: 2018-12-07
#include<iostream>#include<queue>using namespace std;int MAP[6][3]={{1,0,0},{0,-1,0},{0,1,0},{-1,0,0},{0,0,1},{0,0,-1}};char a[30][30][30];int x,y,z; typedef struct{ int z; int y; int x; int moves;}NodeStru;NodeStru temp,start,end;int
Time of Update: 2018-12-07
/////////////////////////////////////////////////////////Digital Roots//位元和的因子#include<iostream>#include<string>using namespace std;char n[10000]; int main(){ memset(n,-1,sizeof(n)); int num,sum,i; while(cin>>n) {
Time of Update: 2018-12-07
///////////////////////////////////////////////////////數學題// 要交換次數少,關鍵是繞長度少於半圓的方向去交換// 我是以A1與An為分界把Ai與(An+1)-Ai交換到分界處,均交換i-1次,一直算到An/2,// 若n為奇數則再加上(An+1)/2的交換次數#include<iostream>using namespace std; int main(){ int casenum; cin>&
Time of Update: 2018-12-07
/////////////////////////////////////////////////////////////////////////Inversion//逆序數序與其求原序#include<iostream>#include<string>using namespace std;char nor[100];long shuru[10000];long chu[10000];long i,j,k,jishu; void perm(int n){
Time of Update: 2018-12-07
#include<iostream>#include<string>using namespace std;char shu[100],cun[50],zou[50]; int main(){ int i,j,num,len,jishu1,jishu2,duwei,yiyou,yizou,zouren; while(cin>>num && num) { memset(cun,'0',sizeof(cun));
Time of Update: 2018-12-07
//////////////////////////////////////////////////////////////最安全逃芝加哥路徑//用單源最短路徑法//在本題中的prev[]沒有用到,這是用於構造最短路徑的,本題不需要#include<iostream>#include<iomanip>using namespace std;#define MIN 0.0double c[105][105];int prev[105];double dist[105];
Time of Update: 2018-12-07
///////////////////////////////////////////////////// 1677474 2008-10-25 14:46:52 Accepted 2202 C++ 0 192 VRS