Search found 73 matches

by FlyDeath
Wed Feb 06, 2002 3:28 am
Forum: Volume 3 (300-399)
Topic: 344 - Roman Digititis
Replies: 15
Views: 4401

I fixed it like you told me:49 is xlix,and 99 is xcix,but i still get WA.Here is my code: #include <stdio.h> #include <math.h> void main() { int num[101][5]; int i,j; int sum[101][5]; int in; for(i=0;i<101;i++) { for(j=0;j<5;j++) { num[i][j]=0; sum[i][j]=0; } } for(i=1;i<101;i++) { for(j=0;j<5;j++) ...
by FlyDeath
Tue Feb 05, 2002 5:45 pm
Forum: Volume 3 (300-399)
Topic: 344 - Roman Digititis
Replies: 15
Views: 4401

I count and count again, and I always get that for input "99" output for "x" is 146(I count it by hand!).
I think there must be something I dont know.
is lxxxix for 89?Or there is something I special?
Thanks
by FlyDeath
Tue Feb 05, 2002 3:07 pm
Forum: Volume 4 (400-499)
Topic: 498 - Polly the Polynomial
Replies: 73
Views: 13489

498 seems to be an easy problem,but i get WA all the time.I believe there is nothing wrong with my code.Maybe i misunderstood the problem or there is some special input.Anyway,here is my code: #include <stdio.h> #include <math.h> void main() { long long cn[100000]; char temp; long long tmp; long num...
by FlyDeath
Tue Feb 05, 2002 7:09 am
Forum: Volume 1 (100-199)
Topic: 111 - History Grading
Replies: 135
Views: 21916

Well....
"order" and "rank" is not the same
by FlyDeath
Fri Feb 01, 2002 3:34 pm
Forum: Volume 4 (400-499)
Topic: 400 - Unix ls
Replies: 93
Views: 17322

I've got it right....
I get wrong because i misunderstood the meaning...:mad:
by FlyDeath
Fri Feb 01, 2002 3:09 pm
Forum: Volume 4 (400-499)
Topic: 400 - Unix ls
Replies: 93
Views: 17322

will the input be 0??
What should i print if the input consist only a simple 0??
by FlyDeath
Fri Feb 01, 2002 2:44 pm
Forum: Volume 4 (400-499)
Topic: 400 - Unix ls
Replies: 93
Views: 17322

Thanks....I've fixed it ... but i can't find how to make the word bigger...:mad:
It really small though...

<font size=-1>[ This Message was edited by: FlyDeath on 2002-02-01 13:45 ]</font>
by FlyDeath
Fri Feb 01, 2002 7:36 am
Forum: Volume 4 (400-499)
Topic: 400 - Unix ls
Replies: 93
Views: 17322

here's my code .... maybe there is some error in it #include <stdio.h> #include <string.h> #include <math.h> char name[100][100]; int in; int len[100]; void sort() { int small; char smallest[100]; int mark[100]; char temp[100][100]; int i,j,l; int result=0; for(i=0;i<100;i++) { mark[i]=0; for(j=0;j<...
by FlyDeath
Fri Feb 01, 2002 5:00 am
Forum: Volume 1 (100-199)
Topic: 191 - Intersection
Replies: 103
Views: 18175

I've got it right....Thanks a lot
by FlyDeath
Thu Jan 31, 2002 5:23 pm
Forum: Volume 1 (100-199)
Topic: 191 - Intersection
Replies: 103
Views: 18175

I've found another mistake.... but still WA.. here is whole of my code: #include <stdio.h> long au,d,bu; long xs=0,ys=0,xe=0,ye=0,sxl=0,sxr=0,syt=0,syb=0; int check(long x,long y) { long ans; if(d==0) { if(x>xs) return 1; else if(x==xs) return 2; else if(x<xs) return 0; } else { ans=y*d-au*x-bu; if(...
by FlyDeath
Thu Jan 31, 2002 4:31 pm
Forum: Volume 1 (100-199)
Topic: 191 - Intersection
Replies: 103
Views: 18175

I fixed my check function into this: int check(double x,double y) { double ans; if(d==0) { if(x>xs) return 1; else if(x==xs) return 2; else return 0; } else { ans=y*d-au-bu; if(ans<0) return 0; else if(ans==0) return 2; else return 1; } } I think it works fine , there must be some other problem i ha...
by FlyDeath
Thu Jan 31, 2002 3:14 pm
Forum: Volume 1 (100-199)
Topic: 191 - Intersection
Replies: 103
Views: 18175

ya...I've fixed it , and still WA...
by FlyDeath
Thu Jan 31, 2002 10:21 am
Forum: Volume 4 (400-499)
Topic: 400 - Unix ls
Replies: 93
Views: 17322

Is there some common problems about this problems??Thanks a lot.
by FlyDeath
Thu Jan 31, 2002 7:24 am
Forum: Volume 1 (100-199)
Topic: 191 - Intersection
Replies: 103
Views: 18175

yes....I've fixed it...and still got WA..
It quite strange...
by FlyDeath
Wed Jan 30, 2002 3:46 pm
Forum: Volume 1 (100-199)
Topic: 191 - Intersection
Replies: 103
Views: 18175

well....i've given up the method above... I change my method to this: #include <stdio.h> long au,d,bu; int check(long x,long y) { long ans; ans=y*d-au-bu; if(ans<0) return 0; else if(ans==0) return 2; else return 1; } void main() { int i=0,j=0; int num=0; long xs=0,ys=0,xe=0,ye=0,sxl=0,sxr=0,syt=0,s...

Go to advanced search