亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? gongjiaoxianlu.txt

?? 公交算法
?? TXT
字號:
  
  #include   <string.h>   
    
  /*##/*~~~~~~~~~~   Noted   by   Tang   Houjian(&Igrave;&AElig;&ordm;&ntilde;&frac14;ó)[2002-6-21   10:30:39]   ~~~~~~~~~~~*/   
  /*   
  /* &sup3;&Euml;×&oslash;&sup1;&laquo;&sup1;&sup2;&AElig;&ucirc;&sup3;&micro;&Ecirc;±&micro;&Auml;&raquo;&raquo;&sup3;&micro;&Icirc;&Ecirc;&Igrave;&acirc;&iexcl;&pound;&Agrave;&yacute;&Egrave;&ccedil;&acute;&Oacute;&Otilde;&frac34;A&micro;&frac12;Z&Ograve;&ordf;×&oslash;&frac14;&cedil;&Acirc;·&sup3;&micro;&pound;&not;&raquo;&raquo;&frac14;&cedil;&acute;&Icirc;&pound;&not;&Ocirc;&Uacute;&Auml;&Auml;&Agrave;&iuml;&raquo;&raquo;&sup3;&micro;&pound;&not;&Otilde;&acirc;&ETH;&copy;&Icirc;&Ecirc;&Igrave;&acirc;&Egrave;&ccedil;&ordm;&Icirc;&frac12;&acirc;&frac34;&ouml;&iexcl;&pound;   
  /* &sup3;&micro;&acute;&Icirc;&iexcl;&iexcl;&iexcl;&iexcl;&sup3;&micro;&Otilde;&frac34;   
  /* 1&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;q,w,e,r,t,y   
  /* 2&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;a,s,d,f,g,h   
  /* 3&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;z,x,c,v,b,n   
  /* 4&iexcl;&iexcl;&iexcl;&iexcl;     p,o,i,u,y,t   
  /* 5&iexcl;&iexcl;&iexcl;&iexcl;     l,k,j,h,g,f   
  /* 6&iexcl;&iexcl;&iexcl;&iexcl;     m,n,b,v,c,x   
  /* 7&iexcl;&iexcl;&iexcl;&iexcl;     q,a,z,w,s,x   
  /*   
  /*________________   Ended   Note   [2002-6-21   10:30:39]   _____________________##*/   
    
  #define   M   7     //   &sup3;&micro;&acute;&Icirc;&Ecirc;&yacute;   
    
  //   &sup3;&micro;&acute;&Icirc;&Iacute;&pound;&iquest;&iquest;&Otilde;&frac34;&Aacute;&ETH;±í   
  char   *Station[M]   =   {   
  "QWERTY",   //   &micro;&Uacute;0&acute;&Icirc;&sup3;&micro;   
  "ASDFGH",   //   &micro;&Uacute;1&acute;&Icirc;&sup3;&micro;   
  "ZXCVBN",   //   &micro;&Uacute;2&acute;&Icirc;&sup3;&micro;   
  "POIUYT",   //   &micro;&Uacute;3&acute;&Icirc;&sup3;&micro;   
  "LKJHGF",   //   &micro;&Uacute;4&acute;&Icirc;&sup3;&micro;   
  "MABVCX",   //   &micro;&Uacute;5&acute;&Icirc;&sup3;&micro;   
  "QAZWSX"};//   &micro;&Uacute;6&acute;&Icirc;&sup3;&micro;   
    
  //   &Ograve;&Ntilde;&frac34;&shy;&sup3;&Euml;×&Aring;&sup1;&yacute;&micro;&Auml;&sup3;&micro;&acute;&Icirc;&Aacute;&ETH;±í&pound;&not;&para;&Ocirc;&Oacute;&brvbar;take[i]=0±í&Ecirc;&frac34;&raquo;&sup1;&Icirc;&acute;&sup3;&Euml;×&Aring;&pound;&not;&pound;&frac12;1±í&Ecirc;&frac34;&Ograve;&Ntilde;&frac34;&shy;&sup3;&Euml;×&Aring;&sup1;&yacute;   
  int     taked[M]={0,0,0,0,0,0,0};   
    
  //   &raquo;&raquo;&sup3;&micro;&micro;&Auml;&Iuml;&Acirc;&sup3;&micro;&micro;&atilde;   
  struct   Exchange   
  {   
  static   int   Len;   //   &sup3;¤&para;&Egrave;   
  int   route;             //   &sup3;&micro;&acute;&Icirc;   
  char   pos;               //   &raquo;&raquo;&sup3;&micro;&Otilde;&frac34;&micro;&atilde;   
  }   Path[M];                     //   &raquo;&raquo;&sup3;&micro;&Acirc;·&frac34;&para;   
    
  int   Exchange::Len   =   0;   //   &sup3;&otilde;&Ecirc;&frac14;&raquo;&macr;&Acirc;·&frac34;&para;&sup3;¤&para;&Egrave;   
    
  bool   PassBy(char   P,   char*   path)   //   &iquest;&acute;&Acirc;·&frac34;&para;path&micro;&Auml;&sup3;&micro;&Ecirc;&Ccedil;·&ntilde;&frac34;&shy;&sup1;&yacute;&micro;&atilde;P   
  {   
  while(*path!='\0')   if(   P==*(path++)   )   return   true;   
  return   false;   
  }   
    
  //   &acute;ò&Oacute;&iexcl;&Acirc;·&frac34;&para;&pound;&not;&Atilde;&raquo;&micro;&Atilde;&Euml;&micro;   
  void   print_path()     
  {   
  static   int   cnt   =   0;   
  printf("%04d",++cnt);   
  for(int   i=0;i<Path[0].Len-1;i++)   
  printf("   (%2d:   %c)   -->   ",Path[i].route+1,Path[i].pos);   
  printf("   (%2d:   %c)   ",Path[i].route+1,Path[i].pos);   
  printf("\n");   
  }   
  void   NextSearchPath(char   end,int   route)   //   &micro;&Yacute;&sup1;é&Ntilde;°&Otilde;&Ograve;&Acirc;·&frac34;&para;   
  {   
  if(   taked[route]!=0   )   return;     //   have   been   taked;   
    
  if(   PassBy(end,Station[route])   )     
  {   
  Path[Path[0].Len].pos   =   end;   
  Path[Path[0].Len].route   =   route;   
  Path[0].Len++;   
  print_path();   
  Path[0].Len--;   
  return;   
  }   
  taked[route]   =   1;   //have   been   taked;   
  Path[Path[0].Len].route   =   route;   
    
  for(int   i=0;i<strlen(Station[route]);i++)     
  {   
  char   nowPos   =   Station[route][i];   
  if(   nowPos==Path[Path[0].Len-1].pos   )   continue;   
  for(   int   j=0;   j<M;   j++)   if(   PassBy(nowPos,Station[j])   )   
  {   
  Path[Path[0].Len].pos   =   nowPos;   
  Path[0].Len++;   
  NextSearchPath(end,j);   
  Path[0].Len--;   
  }   
  }   
  taked[route]   =   0;   //have   been   taked;   
    
  }   
  void   SearchPath(char   start,   char   end)   
  {   
  for(int   i=0;i<M;i++)   if(   PassBy(start,Station[i])   )   
  {   
  Path[Path[0].Len].pos   =   start;   
  Path[Path[0].Len].route   =   i;   
  Path[0].Len++;   
  NextSearchPath(end,i);   
  Path[0].Len--;   
  }   
  }   
    
  void   main()   
  {   
  SearchPath('A','Z');   
  }   
  //&pound;&shy;&pound;&shy;&pound;&shy;&pound;&shy;&pound;&shy;&pound;&shy;&pound;&shy;&pound;&shy;&pound;&shy;&pound;&shy;&pound;&shy;&pound;&shy;&pound;&shy;&pound;&shy;&pound;&shy;&pound;&shy;&pound;&shy;&pound;&shy;&pound;&shy;&pound;&shy;&pound;&shy;&pound;&shy;&pound;&shy;&pound;&shy;&pound;&shy;&pound;&shy;&pound;&shy;&pound;&shy;&pound;&shy;&pound;&shy;&pound;&shy;&pound;&shy;&pound;&shy;&pound;&shy;&pound;&shy;&pound;&shy;&pound;&shy;&pound;&shy;&pound;&shy;&pound;&shy;&pound;&shy;&pound;&shy;&pound;&shy;&pound;&shy;&pound;&shy;   
  
Top




  //   乘車方案.cpp   :   Defines   the   entry   point   for   the   console   application.   
  //   
    
  #include   "stdafx.h"   
  #include   <string.h>   
    
  /*##/*~~~~~~~~~~   Noted   by   [2002-6-21   10:30:39]   ~~~~~~~~~~~*/   
  /*   
  /* 乘坐公共汽車時的換車問題。例如從站A到Z要坐幾路車,換幾次,在哪里換車,這些問題如何解決。   
  /* 車次  車站   
  /* 1   q,w,e,r,t,y   
  /* 2   a,s,d,f,g,h   
  /* 3   z,x,c,v,b,n   
  /* 4       p,o,i,u,y,t   
  /* 5       l,k,j,h,g,f   
  /* 6       m,n,b,v,c,x   
  /* 7       q,a,z,w,s,x   
  /*   
  /*________________   Ended   Note   [2002-6-21   10:30:39]   _____________________##*/   
    
  #define   M   7     //   車次數   
    
  //   車次停靠站列表   
  char   *Station[M]   =   {   
  "QWERTY",   //   第0次車   
  "ASDFGH",   //   第1次車   
  "ZXCVBN",   //   第2次車   
  "POIUYT",   //   第3次車   
  "LKJHGF",   //   第4次車   
  "MABVCX",   //   第5次車   
  "QAZWSX"};//   第6次車   
    
  //   已經乘著過的車次列表,對應take[i]=0表示還未乘著,=1表示已經乘著過   
  int     taked[M]={0,0,0,0,0,0,0};   
    
  //   換車的下車點   
  struct   Exchange   
  {   
  static   int   Len;   //   長度   
  int   route;             //   車次   
  char   pos;               //   換車站點   
  }   Path[M];                     //   換車路徑   
    
  int   Exchange::Len   =   0;   //   初始化路徑長度   
    
  bool   PassBy(char   P,   char*   path)   //   看路徑path的車是否經過點P   
  {   
  while(*path!='\0')   if(   P==*(path++)   )   return   true;   
  return   false;   
  }   
    
  //   打印路徑,沒得說   
  void   print_path()     
  {   
  static   int   cnt   =   0;   
  printf("%04d",++cnt);   
  for(int   i=0;i<Path[0].Len-1;i++)   
  printf("   (%2d:   %c)   -->   ",Path[i].route+1,Path[i].pos);   
  printf("   (%2d:   %c)   ",Path[i].route+1,Path[i].pos);   
  printf("\n");   
  }   
  void   NextSearchPath(char   end,int   route)   //   遞歸尋找路徑   
  {   
  if(   taked[route]!=0   )   return;     //   have   been   taked;   
    
  if(   PassBy(end,Station[route])   )     
  {   
  Path[Path[0].Len].pos   =   end;   
  Path[Path[0].Len].route   =   route;   
  Path[0].Len++;   
  print_path();   
  Path[0].Len--;   
  return;   
  }   
  taked[route]   =   1;   //have   been   taked;   
  Path[Path[0].Len].route   =   route;   
    
  for(int   i=0;i<strlen(Station[route]);i++)     
  {   
  char   nowPos   =   Station[route][i];   
  if(   nowPos==Path[Path[0].Len-1].pos   )   continue;   
  for(   int   j=0;   j<M;   j++)   if(   PassBy(nowPos,Station[j])   )   
  {   
  Path[Path[0].Len].pos   =   nowPos;   
  Path[0].Len++;   
  NextSearchPath(end,j);   
  Path[0].Len--;   
  }   
  }   
  taked[route]   =   0;   //have   been   taked;   
    
  }   
  void   SearchPath(char   start,   char   end)   
  {   
  for(int   i=0;i<M;i++)   if(   PassBy(start,Station[i])   )   
  {   
  Path[Path[0].Len].pos   =   start;   
  Path[Path[0].Len].route   =   i;   
  Path[0].Len++;   
  NextSearchPath(end,i);   
  Path[0].Len--;   
  }   
  }   
    
  void   main()   
  {   
  SearchPath('A','Z');   
  }   
  //---------------------------------------------   




?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲激情五月婷婷| 久久久精品一品道一区| 国产sm精品调教视频网站| 首页国产欧美日韩丝袜| 一区二区三区久久| 亚洲亚洲精品在线观看| 亚洲综合在线免费观看| 性欧美疯狂xxxxbbbb| 日韩中文字幕区一区有砖一区| 亚洲福利一区二区三区| 日日夜夜一区二区| 精品写真视频在线观看| 国产成人免费av在线| 国产91精品在线观看| 97精品久久久久中文字幕| 在线观看亚洲精品视频| 4438x成人网最大色成网站| 欧美一级高清大全免费观看| 久久久综合九色合综国产精品| 国产偷国产偷精品高清尤物| 国产精品国产自产拍高清av| 亚洲人被黑人高潮完整版| 亚洲无人区一区| 激情av综合网| 91视频.com| 欧美一区二区私人影院日本| 日韩三级电影网址| 欧美国产欧美综合| 亚洲一区二区三区精品在线| 日本伊人色综合网| gogo大胆日本视频一区| 欧美日韩不卡一区| 亚洲国产成人私人影院tom| 一区二区三区中文在线观看| 麻豆91在线观看| 一本一本久久a久久精品综合麻豆 一本一道波多野结衣一区二区 | 亚洲欧洲日产国码二区| 一区二区三区产品免费精品久久75| 三级久久三级久久| 粉嫩高潮美女一区二区三区| 欧美日韩国产美| 国产精品盗摄一区二区三区| 奇米影视一区二区三区| 成人精品视频.| 91精品在线免费| 中文字幕一区二区三| 蜜桃一区二区三区在线观看| 亚洲精品一区二区精华| 亚洲品质自拍视频| 国产在线精品不卡| 欧美三级日本三级少妇99| 国产精品私人影院| 久久国产成人午夜av影院| 欧美亚男人的天堂| 亚洲视频香蕉人妖| 成人国产精品免费观看动漫| 日韩一区二区三区av| 亚洲国产欧美日韩另类综合 | 欧美va在线播放| 亚洲一二三四区不卡| 成人黄色软件下载| 欧美国产欧美综合| 国产suv一区二区三区88区| 久久亚洲精华国产精华液| 免费观看成人av| 欧美一区二区啪啪| 日本网站在线观看一区二区三区| 欧美专区日韩专区| 亚洲综合在线免费观看| 欧美少妇bbb| 午夜久久久影院| 欧美日韩国产另类不卡| 婷婷中文字幕一区三区| 欧美日韩精品电影| 日韩av中文字幕一区二区三区| 欧美精选一区二区| 日本一道高清亚洲日美韩| 欧美精品第一页| 美女在线一区二区| 日韩欧美一区二区不卡| 国内外精品视频| 国产欧美久久久精品影院| 福利电影一区二区| ...中文天堂在线一区| 94-欧美-setu| 亚洲成a人片在线观看中文| 欧美视频在线观看一区二区| 香蕉成人啪国产精品视频综合网| 欧美日韩成人综合天天影院| 麻豆专区一区二区三区四区五区| 日韩欧美你懂的| 国产不卡在线播放| 亚洲亚洲精品在线观看| 欧美一级免费大片| 国产 欧美在线| 一区二区三区在线免费视频 | 久国产精品韩国三级视频| 午夜欧美2019年伦理| 欧美一区二区福利在线| 国模娜娜一区二区三区| 亚洲日本在线a| 欧美精品 日韩| 国产高清亚洲一区| 一区二区三区在线免费视频| 9191成人精品久久| 成人一区在线看| 午夜a成v人精品| 国产午夜精品一区二区| 91传媒视频在线播放| 久久国产夜色精品鲁鲁99| 国产精品国产三级国产普通话蜜臀| 色偷偷成人一区二区三区91| 日本成人在线一区| 综合婷婷亚洲小说| 久久久久久久久久久久电影| 91久久精品网| 国产成人亚洲精品狼色在线| 亚洲国产精品嫩草影院| 国产亚洲欧美激情| 91精品国产欧美一区二区18| 成人h精品动漫一区二区三区| 水野朝阳av一区二区三区| 国产精品二区一区二区aⅴ污介绍| 欧美精品三级在线观看| 91影视在线播放| 国产一区二区主播在线| 性感美女极品91精品| 亚洲视频图片小说| 国产日产欧美一区二区视频| 欧美一区二区三区视频免费播放 | 欧美日韩一区二区不卡| 成人精品视频一区二区三区尤物| 午夜成人在线视频| 亚洲一区二区三区精品在线| 国产精品不卡在线| 国产亚洲精品bt天堂精选| 日韩小视频在线观看专区| 欧美中文字幕一区| 91电影在线观看| 色婷婷综合激情| 99国内精品久久| 99精品一区二区| 91在线小视频| 99久久国产综合色|国产精品| 高清国产午夜精品久久久久久| 精品一区二区三区免费| 欧美aaaaaa午夜精品| 奇米一区二区三区av| 日本aⅴ免费视频一区二区三区| 一区二区三区在线免费| 亚洲精品视频一区二区| 亚洲精品免费播放| 一区二区三区 在线观看视频 | 亚洲成a人v欧美综合天堂| 亚洲一区二区av电影| 亚洲韩国一区二区三区| 亚洲伊人色欲综合网| 亚洲欧美日韩在线不卡| 亚洲美腿欧美偷拍| 久久国产免费看| 国产高清视频一区| 国产精品久久久久影院色老大| 久久影院视频免费| 国产日韩av一区| 国产精品电影院| 伊人开心综合网| 日韩国产精品久久久久久亚洲| 免费日本视频一区| 国产一区二区不卡老阿姨| 国产成人在线色| 欧美羞羞免费网站| 精品少妇一区二区三区免费观看| 欧美成人精品3d动漫h| 国产日韩欧美高清在线| 一区在线观看免费| 亚洲成人一二三| 国产精品1024久久| 91久久精品国产91性色tv| 欧美日韩不卡在线| 久久精品一区二区三区不卡牛牛| 国产校园另类小说区| 亚洲精品欧美在线| 日本成人在线不卡视频| 国产精品一色哟哟哟| 欧美影院一区二区三区| 欧美电影免费观看高清完整版 | 欧美日韩免费电影| 成人一道本在线| 欧美日韩在线三级| 国产视频一区不卡| 亚洲国产日韩一级| 国产一区二区导航在线播放| 日本高清不卡一区| 国产亚洲综合性久久久影院| 一区二区三区中文免费| 高清在线成人网| 日韩欧美123| 夜夜嗨av一区二区三区网页| 国产专区欧美精品| 在线播放一区二区三区|