Search found 73 matches

by FlyDeath
Mon Jan 07, 2002 4:25 pm
Forum: Volume 3 (300-399)
Topic: 305 - Joseph
Replies: 41
Views: 3757

I fix it with the input 10
is there any ans greater than 1000000??
some other input i run over 1000000 and can't get the answer

<font size=-1>[ This Message was edited by: FlyDeath on 2002-01-07 15:46 ]</font>
by FlyDeath
Sun Jan 06, 2002 5:52 pm
Forum: Volume 3 (300-399)
Topic: 305 - Joseph
Replies: 41
Views: 3757

is the ans very big??
when the input be 10,i loop from 1 to 240000 and can't find the answer
i just wanna check if my program is ok
by FlyDeath
Fri Jan 04, 2002 5:39 pm
Forum: Volume 2 (200-299)
Topic: 278 - Chess
Replies: 22
Views: 2462

I don't know what exactly the solution is , but this is what I thought:

n,m are integers

Rook:the smaller of n,m
Knight: n*m/2
Queen: the smaller of n,m
King: (n/2)*(m*2)
by FlyDeath
Fri Jan 04, 2002 5:05 pm
Forum: Volume 2 (200-299)
Topic: 231 - Testing the CATCHER
Replies: 53
Views: 14407

I found the problem,just for everybody who has WA with this question: #include <stdio.h> #define MAX 100000 void main() { long high[MAX]; long temp=0; long num=0; long i,j; long len[MAX]; long maxlen=0; long cases=0; while(1) { cases++; maxlen=1; num=0; scanf("%ld",&temp); if(temp==-1) break; high[n...
by FlyDeath
Fri Jan 04, 2002 5:03 pm
Forum: Volume 2 (200-299)
Topic: 231 - Testing the CATCHER
Replies: 53
Views: 14407

The program above gets wrong when I enter such data as " 1 n -1".It print 0,then I fixed it ,but still get WA: #include <stdio.h> #define MAX 100000 void main() { long high[MAX]; long temp=0; long num=0; long i,j; long len[MAX]; long maxlen=0; long cases=0; while(1) { cases++; maxlen=1; num=0; scanf...
by FlyDeath
Fri Jan 04, 2002 4:59 pm
Forum: Volume 2 (200-299)
Topic: 231 - Testing the CATCHER
Replies: 53
Views: 14407

I fixes it,but I still got WA
by FlyDeath
Fri Jan 04, 2002 3:30 pm
Forum: Volume 2 (200-299)
Topic: 253 - Cube painting
Replies: 28
Views: 12515

I've finished,thanks

<font size=-1>[ This Message was edited by: FlyDeath on 2002-01-04 16:25 ]</font>
by FlyDeath
Fri Jan 04, 2002 3:28 pm
Forum: Volume 2 (200-299)
Topic: 231 - Testing the CATCHER
Replies: 53
Views: 14407

Kept getting WAs.... It tell us to find out the longest decreasing subsequeue,isn't it?? Can anyone tell me what's the common problem about this question? following is my code: #include <stdio.h> #define MAX 100000 void main() { long high[MAX]; long temp=0; long num=0; long i,j; long len[MAX]; long ...
by FlyDeath
Fri Jan 04, 2002 2:05 pm
Forum: Volume 2 (200-299)
Topic: 276 - Egyptian Multiplication
Replies: 22
Views: 5694

I got AC finally
by FlyDeath
Thu Jan 03, 2002 4:44 pm
Forum: Volume 2 (200-299)
Topic: 276 - Egyptian Multiplication
Replies: 22
Views: 5694

What do you means??I don't understand If i enter "r n n" then what shoud it be?? Here is the answer my program gave: | r || * rr |||| rrrr |||||||| * rrrrrrrr The solution is: (I didn't type the space properly above)
by FlyDeath
Thu Jan 03, 2002 4:30 pm
Forum: Volume 2 (200-299)
Topic: 227 - Puzzle
Replies: 56
Views: 9200

Kept wrong answer......following is my code,I don't know what's wrong with it #include <stdio.h> void main() { char puz[5][5]; int i,j; int sx,sy; char temp; int flag; int cases=0; int flag2=0; while(1) { cases++; flag=0; for(i=0;i<5;i++) { for(j=0;j<5;j++) { temp=getchar(); if(temp=='Z') { flag2=1;...
by FlyDeath
Wed Jan 02, 2002 5:50 pm
Forum: Volume 1 (100-199)
Topic: 111 - History Grading
Replies: 135
Views: 21911

#include <stdio.h> int max(int l1x,int l1y,int l2x,int l2y); int length[20][20]; void main() { int len; int correct[20]; int corder[20]; int aorder[20]; int ans[20]; int i,j; scanf("%d",&len); for(i=0;i<len;i++) scanf("%d",&correct ); for(i=0;i<len;i++) corder[correct -1]=i; while(scanf("%d",&ans[0]...
by FlyDeath
Wed Jan 02, 2002 5:30 pm
Forum: Volume 1 (100-199)
Topic: 187 - Transaction Processing
Replies: 18
Views: 4614

I sent and fixed many times,but I still got wrong answer.
Can you guys tell me some common problem??Thanks.

<font size=-1>[ This Message was edited by: FlyDeath on 2002-01-02 16:30 ]</font>

Go to advanced search