鏁版嵁緇撴瀯絎叚绔犲~絀洪鍙婄瓟妗圼14]_璺ㄨ€冪綉
聽聽聽聽聽聽聽聽 1錛庝笅闈嬌鐢ㄧ被pascal璇█鍐欑殑瀵逛簩鍙夋爲(wèi)榪涜鎿嶄綔鐨勭畻娉曪紝璇蜂粩緇嗛槄璇?/span>
銆€銆€TYPE pointer=^tnodetp;
銆€銆€tnodetp=RECORD data: char; llink,rlink: pointer錛?/span>END;
銆€銆€linkstack=^linknodet;
銆€銆€linknodet=RECORD data:pointer錛?/span> next;linkstack錛?/span>END;
銆€銆€PROC unknown (VAR t:pointer);
銆€銆€VAR p,temp錛?/span>pointer;
銆€銆€BEGIN p:=t;
銆€銆€IF p<> NIL THEN
銆€銆€[temp:=p^.llink 錛?/span>p^.llink:=p^.rlink;錛?/span>p^.rlink:=temp;
銆€銆€unknown(p^.llink); unknown(p^.rlink); ]
銆€銆€END;
銆€銆€鈶?/span> 鎸囧嚭璇ョ畻娉曞畬鎴愪簡浠€涔堝姛鑳?/span>
銆€銆€鈶?/span> 鐢ㄦ爤灝嗕互涓婄畻娉曟敼涓洪潪閫掑綊綆楁硶unknown1,鍏朵腑鏈夎嫢騫茶鍙ユ垨鏉′歡絀虹己璇峰湪絀虹己澶勫~鍐欎笂閫傚綋鐨勮鍙ユ垨鏉′歡
銆€銆€PROC inistack(VAR s:linkstack);
銆€銆€(1)_______; s^.next:=NIL;
銆€銆€ENDP;
銆€銆€FUNC empty (s:linkstack):boolean;
銆€銆€IF (2)_______THEN empty:=true ELSE empty:=false;
銆€銆€ENDF;
銆€銆€FUNC gettop(s:linkstack):pointer;
銆€銆€gettop:= (3)_______;
銆€銆€ENDF;
銆€銆€FUNC pop(VAR s:linkstack)錛?/span>pointer;
銆€銆€VAR p:linkstack;
銆€銆€pop:=s^.next^.data; p:=s^.next; (4)_______錛?/span>(5)_______;
銆€銆€ENDF;
銆€銆€PROC push (VAR s:linkstack;x:pointer);
銆€銆€VAR p:linkstack;
銆€銆€new(p); p^.data:=x; (6)_______; s^.next:=p;
銆€銆€ENDP;
銆€銆€PROC unknown1(VAR t:pointer);
銆€銆€VAR p,temp: pointer; finish: boolean;
銆€銆€BEGIN
銆€銆€inistack(s); finish:=false; p:=t;
銆€銆€REPEAT
銆€銆€WHILE p<> NIL DO
銆€銆€[temp:=p^.llink; p^.llink:=p^.rlink; p^.rlink:=temp;
銆€銆€(7)_______; p:=p^.llink; ];
銆€銆€IF (8)____THEN [p:=gettop(s);temp;=pop(s);] ELSE (9)_______
銆€銆€UNTIL (10)___
ENDP; 銆愬寳鏂逛氦閫氬ぇ瀛?/span> 2000 涓夈€?/span> (25鍒?/span>)銆?/span>
銆愬弬鑰冪瓟妗堛€?/span>
銆€銆€鈶?/span> 鏈畻娉曞皢浜屽弶鏍?wèi)鐨勫乏鍙冲瓙鏍?wèi)浜ゆ崲
銆€銆€鈶?/span> (1)new (s) //鍒濆鍖栵紝鐢寵緇撶偣 (2) s^.next=NIL銆€ //s鏄甫澶寸粨鐐圭殑閾炬爤
銆€銆€(3)s^.next^.data銆€//鍙栨爤欏跺厓绱?/span> (4)s^.next:= p^.next //鏍堥《鎸囬拡涓嬬Щ
銆€銆€(5)dispose(p)銆€銆€ //鍥炴敹絀洪棿 (6)p^.next:=s^.next銆€銆€//灝嗘柊緇撶偣鍏ラ摼鏍?/span>
銆€銆€(7)push(s,p^.rchild) //鍏堟部鏍?wèi)鐨勫乏鍒嗘敮鍚戜笅锛尀?/span>p鐨勫彸瀛愬コ鍏ユ爤淇濆瓨
銆€銆€(8)NOT empty(s) (9) finishe:=true //宸插畬鎴?/span> (10)finish=true 錛堟垨s^.next=NIL錛?/span>
銆€銆€
銆€銆€2錛庡叿鏈?/span>n涓粨鐐圭殑瀹屽叏浜屽弶鏍?wèi)锛屽凡缁彊搴搴忓瓨鍌ㄥ湪涓€緇存暟緇?/span>A[1..n]涓紝涓嬮潰綆楁硶鏄皢A涓『搴忓瓨鍌ㄥ彉涓轟簩鍙夐摼琛ㄥ瓨鍌ㄧ殑瀹屽叏浜屽弶鏍?wèi)銆傝濉叆閫傚綋鐨勮鍙ュ湪涓嬮潰鐨?/span>_______涓婏紝瀹屾垚涓婅堪綆楁硶銆?/span>
銆€銆€TYPE ar=ARRAY[1..n] OF datatype;
銆€銆€pointer=RECORD data:datatype; lchild, rchild: pointer; END;
銆€銆€PROCEDURE btree(VAR a: ar; VAR p:pointer);
銆€銆€VAR i:integer;
銆€銆€PROCEDURE createtree(VAR t: pointer;i: integer)
銆€銆€BEGIN (1)_______; t^.data=a[i];
銆€銆€IF(2)_____THEN creattree((3)_______) ELSE t^.lchild:=NIL;
銆€銆€IF(4)_____THEN createtree((5)_______) ELSE t^.rchild:=NIL;
銆€銆€END;
銆€銆€BEGIN
銆€銆€j:= (6)__; createtree(p,j)
銆€銆€END; 銆?a target="_blank">鍖椾含閭數(shù)澶у 1998 浜斻€?/span> (15鍒?/span>)銆?/span>
銆€銆€銆愬弬鑰冪瓟妗堛€?/span>
銆€銆€(1)new(t) (2)2*i鈮?/span>n銆€ (3)t^.lchild,2*i (4)2*i+1鈮?/span>n (5)t^.rchild,2*i+1 (6)1
銆€銆€2022鑰冪爺鍒濆璇曞凡緇忔帴榪戝熬澹幫紝鑰冪爺瀛﹀瓙鍏ㄩ潰榪涘叆2023灞婂鑰?/b>錛岃法鑰冧負(fù)23鑰冪爺鐨勮€冪敓鍑嗗浜?0澶ц鍖呭叏紼嬪噯澶囥€佸叏騫村涔?fàn)澶囪€冭鍒掋€佺洰鏍囬櫌鏍′笓涓氳緟瀵箋€佸叏鐪熷璇曟ā鎷熺粌涔?fàn)鍜屽叏绋嬮拡瀵规€ф寚瀵鹼紱2023鑰冪爺鐨勫皬浼欎即閽堜篃宸茬粡寮€濮嬫嫨鏍″拰澶嶄範(fàn)浜嗭紝璺ㄨ€冭€冪爺鐣呭5.0鐗堟湰鍏ㄦ柊鍗囩駭錛屾棤璁轟綘鍦ㄦ牎鍦ㄥ閮藉彲浠ユ洿鑷鐨勫畬鎴愪綘鐨勮€冪爺澶嶄範(fàn)錛?/a>鏆戝亣闆嗚钀?/span>甯︽潵浜嗛櫌鏍′笓涓氬垵姝ラ€夋嫨錛屾槑紜柟鍚戯紱鑰冪爺澶囪€冨叏騫磋鍒掞紝鏍稿績鐭ヨ瘑鐐瑰叆闂紱涓€у寲鍒跺畾澶囪€冩柟妗堬紝鍔╀綘璧㈠湪璧瘋窇綰匡紝鏃╁嚭鍙戜竴鐐圭鎴愬姛灝辨洿榪戜竴鐐癸紒
鐐瑰嚮鍙充晶鍜ㄨ鎴?/strong>鐩存帴鍓嶅線浜嗚В鏇村
鑰冪爺闄㈡牎涓撲笟閫夋嫨鍜岃€冪爺澶嶄範(fàn)璁″垝 | |||
2023澶囪€冨涔?/td> | 2023綰夸笂綰夸笅闅忔椂瀛︿範(fàn) | 34鎵€鑷垝綰塊櫌鏍¤€冪爺澶嶈瘯鍒嗘暟綰挎眹鎬?/td> | |
2022鑰冪爺澶嶈瘯鏈€鍏ㄤ俊鎭暣鐞?/a> | 鍏ㄥ浗鍚勬嫑鐢熼櫌鏍¤€冪爺澶嶈瘯鍒嗘暟綰挎眹鎬?/a> | ||
2023鍏ㄦ棩鍒跺皝闂緇?/span> | 鍏ㄥ浗鍚勬嫑鐢熼櫌鏍¤€冪爺璋冨墏淇℃伅姹囨€?/a> | ||
2023鑰冪爺鍏堢煡 | 鑰冪爺鑰冭瘯縐戠洰鏈夊摢浜涳紵 | 濡備綍姝g‘鐪嬪緟鑰冪爺鍒嗘暟綰匡紵 | |
涓嶅悓闄㈡牎鐩稿悓涓撲笟濡備綍閫夋嫨鏇撮€傚悎鑷繁鐨?/a> | 浠庡氨涓氳鑰冪爺濡備綍鎷╀笓涓氾紵 | ||
鎵嬫妸鎵嬫暀浣犲浣曢€変笓涓氾紵 | 楂樻牎鐮旂┒鐢熸暀鑲插悇瀛︾闂ㄧ被鎺掕姒?/a> |
鐩稿叧鎺ㄨ崘
璺ㄨ€冭€冪爺璇劇▼
鐝瀷 | 瀹氬悜鐝瀷 | 寮€鐝椂闂?/td> | 楂樺畾鐝?/td> | 鏍囧噯鐝?/td> | 璇劇▼浠嬬粛 | 鍜ㄨ |
縐嬪闆嗚 | 鍐插埡鐝?/td> | 9.10-12.20 | 168000 | 24800璧?/td> | 灝忕彮闈㈡巿+涓撲笟璇?瀵?+涓撲笟璇懼畾鍚戣緟瀵?鍗忚鍔犲己璇劇▼(楂樺畾鐝?+涓撳睘瑙勫垝絳旂枒(楂樺畾鐝?+綺劇粏鍖栫瓟鐤?澶嶈瘯璧勬簮(楂樺畾鐝?+澶嶈瘯璇懼寘(楂樺畾鐝?+澶嶈瘯鎸囧(楂樺畾鐝?+澶嶈瘯鐝富浠?v1鏈嶅姟(楂樺畾鐝?+澶嶈瘯闈㈡巿瀵嗚(楂樺畾鐝?+澶嶈瘯1v1(楂樺畾鐝? | |
2023闆嗚鐣呭 | 闈炲畾鍚戯紙鏀胯嫳鐝?鏁版斂鑻辯彮錛?/td> | 姣忔湀20鏃?/td> | 22800璧?鍗忚鐝? | 13800璧?/td> | 鍏堣闃跺湪綰胯紼?鍩虹闃跺湪綰胯紼?寮哄寲闃跺湪綰胯紼?鐪熼闃跺湪綰胯紼?鍐插埡闃跺湪綰胯紼?涓撲笟璇鵑拡瀵規(guī)€т竴瀵逛竴璇劇▼+鐝富浠誨叏紼嬬潱瀛︽湇鍔?鍏ㄧ▼瑙勫垝浣撶郴+鍏ㄧ▼嫻嬭瘯浣撶郴+鍏ㄧ▼綺劇粏鍖栫瓟鐤?鎷╂牎鎷╀笓涓氳兘鍔涘畾浣嶄綋緋?鍏ㄥ勾鍏抽敭鐜妭鎸囧浣撶郴+鍒濊瘯鍔犲己璇?鍒濊瘯涓撳睘鏈嶅姟+澶嶈瘯鍏ㄧ鏍囧噯鐝湇鍔?/td> |