Search found 7 matches

by lu shukai
Thu Feb 27, 2003 4:56 pm
Forum: Volume 1 (100-199)
Topic: 112 - Tree Summing
Replies: 137
Views: 14272

p112 who can help me

i have tried more than thousand times and got wa again and again here is my code #include <iostream> using namespace std; struct BTreeNode { int value; BTreeNode* lch; BTreeNode* rch; }; int sum; char ch; BTreeNode* root; bool found; bool ckn; int getValue() { bool flag = true; int ret = 0; cin >> c...
by lu shukai
Sun Sep 08, 2002 2:21 pm
Forum: Volume 6 (600-699)
Topic: 620 - Cellular Structure
Replies: 18
Views: 5214

620 - Cellular Structure

// I always get wa please help program P620; {$APPTYPE CONSOLE} uses SysUtils; var i,n:integer; arr:array[1..1000] of char; len:integer; function iso(i,j:integer):boolean; begin if i<=j then begin iso:=false; if (i=j) and (arr ='A') then iso:=true else if (arr[len]='B')and(arr[len-1]='A')and iso(i,j...
by lu shukai
Thu Aug 29, 2002 8:04 am
Forum: Volume 1 (100-199)
Topic: 119 - Greedy Gift Givers
Replies: 145
Views: 26102

119wa help

program P119; {$APPTYPE CONSOLE} uses SysUtils; type mytype = record name:array[1..15] of char; len:integer; money:integer; end; namet= record name:array[1..15] of char; len:integer; end; var str:string; i,n:integer; people:array[1..15] of mytype; procedure cal(giv,get:namet;m,nn:integer); var i,j:i...
by lu shukai
Mon Aug 19, 2002 1:57 pm
Forum: Volume 4 (400-499)
Topic: 445 - Marvelous Mazes
Replies: 93
Views: 10671

445help

//i got wrong answer please me. program P445; {$APPTYPE CONSOLE} uses SysUtils; var str:array[1..1000000] of char; len:integer; procedure slv; var time,t,j:integer; begin t:=1; while t<=len do begin if str[t]='!' then begin writeln; t:=t+1; end; time:=0; while (str[t]>='0')and(str[t]<='9') do begin ...
by lu shukai
Mon Aug 19, 2002 9:27 am
Forum: Volume 102 (10200-10299)
Topic: 10289 - A Square and Equilateral Triangles
Replies: 27
Views: 8448

i got ac

i have found my problem.
the fifth graph is not balanced.
thank you! :D
by lu shukai
Wed Aug 14, 2002 3:43 am
Forum: Volume 102 (10200-10299)
Topic: 10289 - A Square and Equilateral Triangles
Replies: 27
Views: 8448

10289 help

program P10289; {$APPTYPE CONSOLE} uses SysUtils; var n,pi,a,b,c,d,e,f,g:real; aa,bb,cc:real; begin pi:=4*arctan(1); while not eof do begin readln(n); a:=n/sin(75/180*pi); b:=n/sin(120/180*pi)*sin(45/180*pi); c:=n*sqrt(2)/sqrt(3)*2/(1+sqrt(2)); d:=n*sqrt(3)/(1+sqrt(3)); aa:=(1-0.75-3-3*sqrt(3)/2); b...
by lu shukai
Tue Aug 06, 2002 10:08 am
Forum: Volume 3 (300-399)
Topic: 350 - Pseudo-Random Numbers
Replies: 56
Views: 16497

i use your code get ac

array b should more big!
good luck! :D

Go to advanced search