<output id="qn6qe"></output>

    1. <output id="qn6qe"><tt id="qn6qe"></tt></output>
    2. <strike id="qn6qe"></strike>

      亚洲 日本 欧洲 欧美 视频,日韩中文字幕有码av,一本一道av中文字幕无码,国产线播放免费人成视频播放,人妻少妇偷人无码视频,日夜啪啪一区二区三区,国产尤物精品自在拍视频首页,久热这里只有精品12
      書山有徑勤為路>>>>>>>>

      <<<<<<<<學海無涯苦作舟!

      上一頁 1 ··· 4 5 6 7 8 9 10 11 12 ··· 19 下一頁

      2011年12月1日

      字符指針變量數組的用法

      摘要: 我們知道,char *s="aisdfj"; 是成立的。于是char *s[]={"one", "two", ……}也是成立的。就相當于把char *s看成另外一種類型的變量一樣。其實,就這么簡單。Sample Inputone + two =three four + five six =zero seven + eight nine =zero + zero =Sample Output39096View Code #include "stdio.h"#include "string.h"ch 閱讀全文

      posted @ 2011-12-01 16:14 More study needed. 閱讀(244) 評論(0) 推薦(0)

      BFS尋求最短距離

      摘要: 題目:http://acm.swust.edu.cn/oj/problem/4/這是一道簡單的題目,但是可以說明問題了。View Code #include "iostream"#include "string"#include "cstdio"#include "cstring"#include "algorithm"#include "queue"using namespace std;char Map[105][105];int Used[105][105];int D 閱讀全文

      posted @ 2011-12-01 12:14 More study needed. 閱讀(282) 評論(0) 推薦(0)

      DFS遍歷整個連通的區域

      摘要: DFS在搜索的過程中,可以搜索一大片的連通的區域。題目:http://acm.swust.edu.cn/oj/problem/1/View Code #include<iostream>#include<string.h>using namespace std;int direction[4][2] = {{-1,0},{1,0},{0,-1},{0,1}};int used[1005][85];char map[1005][85];int W, H, i, j, count, Max, tx, ty;void dfs(int i, int j){ int k; cou 閱讀全文

      posted @ 2011-12-01 12:11 More study needed. 閱讀(313) 評論(0) 推薦(0)

      2011年11月27日

      map<int,int>和數組

      摘要: 我們知道,要是將數組開成int a[0xFFFFFFF]這么大,那是肯定不行。它會提示too big.但是如果用map的話,那就可以了。從這個方面來講,map就是數組的升級版嘍!這個可是我發現的哦。下面簡單的給出一個例子來。題目:http://acm.swust.edu.cn/oj/problem/0822/下面給出錯誤的代碼:View Code #include<iostream>#include<cstring>#include<algorithm>using namespace std;#define Max 1500000001int Num[Max 閱讀全文

      posted @ 2011-11-27 12:04 More study needed. 閱讀(4295) 評論(0) 推薦(0)

      矩陣相乘的算法

      摘要: 問題:求矩陣相乘后的和。一、最基本的算法下面給出一個例子來說明一下矩陣是如何相乘的。矩陣A為 1 0 2 3 5 6矩陣B為 3 1 2 2 1 3C=A*B = 1*3+0*2+2*1 1*1+0*2+2*3 3*3+5*2+6*1 3*1+5*2+6*3最簡單的算法就是用3個for循環就可以搞定了。假設A有ArowNum行, AvolBrow列。B必有AvolBrow行,假設B有BvolNum列。則循環如下: for(int i=0; i<ArowNum; i++) for(int j=0; j<BvolNum; j++) ... 閱讀全文

      posted @ 2011-11-27 11:21 More study needed. 閱讀(1807) 評論(0) 推薦(0)

      2011年11月26日

      更加深入的了解Floyd

      摘要: 下面來看一道簡單的但是有點意思的最短路徑的問題。本次用的解法是Floyd.題目:http://acm.swust.edu.cn/oj/problem/0819/在使用Floyd的時候有三點需要注意:一:map[][]數組的初始化 這個是十分的重要的,不然無法Floyd。具體點就是,map[i][i]=0; map[i][j]=INF;二、輸入時候的選擇性 只有做到這一步,才能保證是最短的,不然不行。具體點就是,if(map[u][v] > w) map[u][v] = map[v][u] = w; 這個主要用在題目中沒有說明是否會多次輸入同一條邊的時候。三、只有一個結點的情況 毫無... 閱讀全文

      posted @ 2011-11-26 10:46 More study needed. 閱讀(259) 評論(0) 推薦(0)

      更加深入的了解SPFA

      摘要: SPFA算法是求單源路徑的經典算法,就是一點到其它所有點的最短路徑。這個類似于Flyod但是效率要高很多。下面給出具體的演示。Minya Konka decided to go to Fuzhou to participate in the ACM regional contest at their own expense.Through the efforts, they got a small amount of financial support from their school, but the school could pay only one of those costs bet 閱讀全文

      posted @ 2011-11-26 10:38 More study needed. 閱讀(374) 評論(0) 推薦(0)

      2011年11月24日

      奇怪的字符數組初始化

      摘要: 今天做了一個題目,感覺字符數組的初始化有點奇怪,就親自測試了一下,果不其然。確實很奇怪。這個就要和數組區分開了。一定不能將兩者混淆了。下面給出測試的代碼,并一一解析。View Code #include "iostream"#include "string"#include "cstring"using namespace std;#define size 10int main(){ char s1[size]="1", s2[size]={0}; for(int i=0; i<10; i++) cout&l 閱讀全文

      posted @ 2011-11-24 14:37 More study needed. 閱讀(654) 評論(0) 推薦(0)

      2011年11月23日

      vector的小小應用,大大功能

      摘要: DescriptionAs a contestant, you must be familiar with the rules of ACM-ICPC. Teams are ranked according to the most problems solved. Teams who solve the same number of problems are ranked by least total time. The total time is the sum of the time consumed for each problem solved. The time consumed f 閱讀全文

      posted @ 2011-11-23 13:14 More study needed. 閱讀(273) 評論(0) 推薦(0)

      vector中的各種函數演示

      摘要: 1.初始化演示2.push_back()演示3.insert()演示4.pop_back()演示5.erase()演示6.size()演示7.empty()演示8.assign()演示#include<iostream>#include<vector>using namespace std;typedef vector<int> vint;int main(){ cout<<"初始化對象:"<<endl; vint vec1; ///vec1對象初始為空 vint vec2(10, 6); ///vec2對象最初有 閱讀全文

      posted @ 2011-11-23 10:24 More study needed. 閱讀(258) 評論(0) 推薦(0)

      上一頁 1 ··· 4 5 6 7 8 9 10 11 12 ··· 19 下一頁

      導航

      書山有徑勤為路>>>>>>>>

      <<<<<<<<學海無涯苦作舟!

      主站蜘蛛池模板: 亚洲精品乱码久久久久久自慰| 高清一区二区三区不卡视频| 西西人体大胆444WWW| 午夜亚洲www湿好爽| 亚洲国产精品美日韩久久| 日韩一区二区三区高清视频| 久久天天躁夜夜躁狠狠ds005| 欧美乱码伦视频免费| 在线aⅴ亚洲中文字幕| 国产精品 第一页第二页| 日韩丝袜人妻中文字幕| 最新亚洲人成网站在线影院| 99久久亚洲综合精品成人网| 日韩国产中文字幕精品| 久久夜色撩人精品国产小说| 国产午夜福利精品视频| 在线看片免费人成视久网| 国产初高中生在线视频| 久久国产一区二区三区| 久久精品道一区二区三区| 成人又黄又爽又色的视频| 国产成人免费午夜在线观看| 国产精品一区在线蜜臀| 乱码午夜-极品国产内射| 亚洲国产精品一区二区久| 九台市| 亚洲成色av网站午夜影视| 无码精品人妻一区二区三区中| 女人高潮被爽到呻吟在线观看| 肉大捧一进一出免费视频| 四房播色综合久久婷婷| 国产精品亚洲一区二区三区喷水 | 国产成人午夜精品永久免费| 四虎影视一区二区精品 | 国产精品 无码专区| 五月丁香啪啪| 免费视频一区二区三区亚洲激情| 九九热免费在线播放视频| ww污污污网站在线看com| 久久精品国产再热青青青| 久久99九九精品久久久久蜜桃|