Search found 39 matches

by SilVer DirectXer
Fri Mar 07, 2003 7:57 pm
Forum: Volume 4 (400-499)
Topic: 450 - Little Black Book
Replies: 57
Views: 6458

[cpp] #include <stdlib.h> #include <iostream.h> #include <stdio.h> #include <math.h> #include <string.h> int GET_all_information(void); int fncompare (const void * a, const void * b ); struct rec{ char dept[300]; char pre_name[300]; char first_name[300]; char last_name[1000]; char address[300]; char...
by SilVer DirectXer
Fri Mar 07, 2003 12:55 pm
Forum: Volume 4 (400-499)
Topic: 450 - Little Black Book
Replies: 57
Views: 6458

450 - Little Black Book

[cpp] #include <stdlib.h> #include <iostream.h> #include <stdio.h> #include <math.h> #include <string.h> int GET_all_information(void); struct rec{ char dept[300]; char pre_name[300]; char first_name[300]; char last_name[1000]; char address[300]; char telH[300]; char telO[300]; char box[300]; }; typ...
by SilVer DirectXer
Wed Feb 26, 2003 8:57 pm
Forum: Volume 5 (500-599)
Topic: 527 - The partition of a cake
Replies: 11
Views: 1310

527 run time error...

[cpp] #include <stdio.h> #include <iostream.h> #include <math.h> #include <stdlib.h> int total_l; int world[1001][1001]; int list[1001],need=0; int right; class cord{ public: int x; int y; }; void calc1_0(int i,int j,int k); cord pt1[1000],pt2[1000]; void main(void) { int i,j,k; while(1) { need=0; c...
by SilVer DirectXer
Fri Feb 07, 2003 3:46 pm
Forum: Volume 1 (100-199)
Topic: 101 - The Blocks Problem
Replies: 635
Views: 39989

i edited the code so that it can ignore the num that is not at the range. However, run time error still occur.... can any one help me to see see which case it will make a run time error? [cpp] #include <stdio.h> #include <stdlib.h> #include <iostream.h> #include <string.h> int world[30][30]; int num...
by SilVer DirectXer
Fri Feb 07, 2003 2:56 pm
Forum: Volume 1 (100-199)
Topic: 101 - The Blocks Problem
Replies: 635
Views: 39989

thanks u so much !
by SilVer DirectXer
Fri Feb 07, 2003 11:28 am
Forum: Volume 1 (100-199)
Topic: 101 - The Blocks Problem
Replies: 635
Views: 39989

101 run time error

[cpp] #include <stdio.h> #include <stdlib.h> #include <iostream.h> #include <string.h> int world[25][25]; int num_o_b; char command1[6],command2[6]; int com_1,com_2; void getcommand1(void); void getcommand2(void); void move_over(void); void move_onto(void); void pile_onto(void); void pile_over(void)...
by SilVer DirectXer
Wed Feb 05, 2003 5:56 pm
Forum: Volume 3 (300-399)
Topic: 306 - Cipher
Replies: 74
Views: 18677

306TLE

[cpp] #include <stdio.h> #include <string.h> #include <stdlib.h> int convert(int k,int times,char []); int num[202],times,i,a,j,index[202]; long k; char string[202],dummy,ostring[202]; int main(void) { int repeat; char temp[202]; do{ scanf("%d",×); if (times==0) return 0; for (i=0;i<times;i++) ...
by SilVer DirectXer
Sat Feb 01, 2003 9:02 pm
Forum: Volume 6 (600-699)
Topic: 691 - Triangle Partition
Replies: 2
Views: 2038

691 - Triangle Partition

Oh, i got a TLE.... :o but i have already tried my best to reduce the running time. [cpp] #include <stdio.h> #include <iostream.h> #include <math.h> class pt{ public: long double X; long double Y; }; long double interval=0.01; int num_of_data,AOC=0,AOB=0,BOC=0,num; pt node[300],O; int answer(long do...
by SilVer DirectXer
Sun Jan 26, 2003 9:56 am
Forum: Volume 3 (300-399)
Topic: 306 - Cipher
Replies: 74
Views: 18677

ACM 306

[c] #include <stdio.h> #include <string.h> #include <stdlib.h> void convert(int k,int times,char []); int num[200],times,k,i,a,j; char string[202],dummy; void main(void) { do{ scanf("%d",×); if (times==0) { feof(stdin); break; } for (i=0;i<times;i++) { scanf("%d",num+i); } do { scanf("%d",&k); ...

Go to advanced search