ZOJ 1068 摩斯密碼

/////////////////////////////////////////////////////////1068摩斯密碼//直接類比#include<iostream>#include<algorithm>using namespace std; char code[35][2][5];                  //記錄29個摩斯密碼 char str[150];                        //記錄輸入的原碼char change[

ZOJ 1292 多個大數相加

#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(

ZOJ 1093 猴子與香蕉

///////////////////////////////////////////////////////////////////////猴子與香蕉//把每一種方塊化為三個,先排序,再用n^2的dp#include<iostream>#include<algorithm>using namespace std; struct block{    int x;    int y;    int height;}bl[100];void maxmin(int

)如何撰寫數學建模論文

如何撰寫數學建模論文--兼談數學建模競賽答卷要求   當我們完成一個數學建模的全過程後,就應該把所作的工作進行小結,寫成論文。撰寫數學建模論文和參加大學生數學建模競賽時完成答卷,在許多方面是類似的。事實上數學建模競賽也包含了學生寫作能力的比試,因此,論文的寫作是一個很重要的問題。首先要明確撰寫論文的目的。數學建模通常是根據實際需要而提出的,這就要求對建模全過程作一個全面的、系統的小結,使有關的技術人員(或競賽時的閱卷人員)讀了之後,相信模型假設的合理性,理解在建立模型過程中所用數學方法的適用性,

ZOJ 1068 (其他進位是否迴文數)

//////////////////////////////////////////////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]!

ZOJ 1334 任意進位轉換

#include<iostream.h>#include<string.h>#include<math.h>#include<iomanip.h>char s[100];char chu[1000][100];                                //由於每一次輸出chu,之後如果又使用chu的話,chu裡面的資料並                               

ZOJ 1108 白老鼠越大越慢

////////////////////////////////////////////////////////////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

如何調整顯示器保護視力

  電腦護眼攻略步驟:

使用boost的thread庫

如何開始使用boost的跨平台thread庫(Linux)boost首頁:http://www.boost.org/在首頁點擊download進入sourceforge頁面下載,當前最新版本為boost_1_33_1,有多種檔案格式可供下載(包括.zip,

添加SNMP++到VC6.0

隨著上次的snmp_pp.lib檔案的編譯成功,我對於SNMP++的學習得以進一步學入,這次是學習SNMP++軟體包中的各種類,它們分別是Oid類、IpAddress和UdpAddress類、Vb類、Pdu類、Snmp類,通過對這幾種類的學習,最終我們可以通過SNMP++對支援SNMP管理的網路裝置(如CISCO的交換器)進行SNMP操作(比如GET等)。一、

ZOJ 1094 帶括弧的矩陣連乘

////////////////////////////////////////////////////////帶括弧矩陣連乘的類比//使用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; 

ZOJ 1337 集合、關係求pi

#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;

ZOJ 1151 字元逆置

/////////////////////////////////////////////////////////////////////////////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--)    {  

ZOJ 1940 走三維迷宮

#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

ZOJ 1115 位元和的因子

/////////////////////////////////////////////////////////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)    {      

ZOJ 1730 圓桌換序

///////////////////////////////////////////////////////數學題//   要交換次數少,關鍵是繞長度少於半圓的方向去交換//   我是以A1與An為分界把Ai與(An+1)-Ai交換到分界處,均交換i-1次,一直算到An/2,//   若n為奇數則再加上(An+1)/2的交換次數#include<iostream>using namespace std; int main(){    int casenum;    cin>&

ZOJ 1201 逆序數序與其求原序

/////////////////////////////////////////////////////////////////////////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){  

ZOJ 1405 日光浴廳

#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));  

ZOJ 2797 最安全逃芝加哥路徑

//////////////////////////////////////////////////////////////最安全逃芝加哥路徑//用單源最短路徑法//在本題中的prev[]沒有用到,這是用於構造最短路徑的,本題不需要#include<iostream>#include<iomanip>using namespace std;#define MIN 0.0double c[105][105];int prev[105];double dist[105];  

ZOJ 2202 α編碼

///////////////////////////////////////////////////// 1677474 2008-10-25 14:46:52 Accepted  2202 C++ 0 192 VRS

總頁數: 61357 1 .... 5920 5921 5922 5923 5924 .... 61357 Go to: 前往

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.