Search found 73 matches

by FlyDeath
Wed Jan 30, 2002 7:02 am
Forum: Volume 1 (100-199)
Topic: 191 - Intersection
Replies: 103
Views: 18243

er.....sorry , my program get a "T", is that right??
by FlyDeath
Wed Jan 30, 2002 6:58 am
Forum: Volume 1 (100-199)
Topic: 191 - Intersection
Replies: 103
Views: 18243

my program get "F" for your input,is that right??
but i can figure out what your test case means... left top(0,0) and right buttom(3,3)??
by FlyDeath
Tue Jan 29, 2002 4:56 pm
Forum: Volume 1 (100-199)
Topic: 191 - Intersection
Replies: 103
Views: 18243

I don't know what's wrong with my code.... #include <stdio.h> class point { public: double x,y; }; class line { public: point p1,p2; }; int ccw(point p1, point p2, point p3) { double dx1, dx2, dy1, dy2; dx1 = p2.x - p1.x; dy1 = p2.y - p1.y; dx2 = p3.x - p2.x; dy2 = p3.y - p2.y; if (dy1/dx1 <= dy2/dx...
by FlyDeath
Mon Jan 28, 2002 5:42 am
Forum: Volume 4 (400-499)
Topic: 443 - Humble Numbers
Replies: 82
Views: 7103

What's the way to do such as 1st 2rd 3rd etc. mine is that if anything mod 100>10 and <20 then print th else if anything mod 10=1 then print st,=2 then print nd,=3 then print rd,else print th is that wrong?? here's my code: #include <stdio.h> #include <stdlib.h> class chumble { public: double num; i...
by FlyDeath
Sat Jan 26, 2002 5:56 pm
Forum: Volume 4 (400-499)
Topic: 499 - What's The Frequency, Kenneth?
Replies: 93
Views: 10490

I really got mad with this problem,i fixed it many times and still got WA,can someone help me?Here's my code: #include <stdio.h> #include <string.h> void main() { char temp[100000]; long times[256]; char temp2; long i; long len; long max=0; for(i=0;i<256;i++) times =0; while(scanf("%s%c",&temp,&temp...
by FlyDeath
Wed Jan 23, 2002 5:23 pm
Forum: Volume 7 (700-799)
Topic: 725 - Division
Replies: 49
Views: 19583

725 - Division

following is my 725 code , i can't find what's wrong: #include <stdio.h> void print(long down,long up); int check(long down,long up); int flag=0; void main() { int num; int result=0; long down=1; while(scanf("%d",&num)!=EOF) { if(num==0) break; flag=0; for(down=1;down<=99999/num;down++) { result=che...
by FlyDeath
Tue Jan 22, 2002 1:10 pm
Forum: Volume 1 (100-199)
Topic: 104 - Arbitrage
Replies: 223
Views: 13590

i fixed that problem and still got WA...
by FlyDeath
Sun Jan 20, 2002 6:00 pm
Forum: Volume 1 (100-199)
Topic: 104 - Arbitrage
Replies: 223
Views: 13590

oh,thanks.i misunderstood you,sorry.
i'll fix it tomorrow
by FlyDeath
Sun Jan 20, 2002 1:10 pm
Forum: Volume 1 (100-199)
Topic: 104 - Arbitrage
Replies: 223
Views: 13590

no...
you can look more carefully,i first set the start point to "1",and then start transfering,and if something transfer into the start point and larger than it, then save it:
if(now*exchange[j]>now[j])
{
if(j==0)
flag1=1;
by FlyDeath
Sun Jan 20, 2002 9:06 am
Forum: Volume 1 (100-199)
Topic: 104 - Arbitrage
Replies: 223
Views: 13590

I fixed it and still get WA...Dont know why
by FlyDeath
Sun Jan 20, 2002 8:28 am
Forum: Volume 1 (100-199)
Topic: 104 - Arbitrage
Replies: 223
Views: 13590

really??I thought it must start from 1.
I'll try that,thanks.
by FlyDeath
Sun Jan 20, 2002 5:42 am
Forum: Volume 1 (100-199)
Topic: 104 - Arbitrage
Replies: 223
Views: 13590

I get right with the test data,but i still get WA here is my code: #include <stdio.h> void main() { double now[20]; double next[20]; double exchange[20][20]; int len[20][100]; int i,j,k; int dim; int flag=0; int times=0; int flag1=0; while(scanf("%d",&dim)!=EOF) { for(i=0;i<20;i++) { now =0; next =0...
by FlyDeath
Sun Jan 20, 2002 5:36 am
Forum: Volume 4 (400-499)
Topic: 444 - Encoder and Decoder
Replies: 155
Views: 21476

I find my mistake
thanks
by FlyDeath
Sat Jan 19, 2002 5:41 pm
Forum: Volume 4 (400-499)
Topic: 444 - Encoder and Decoder
Replies: 155
Views: 21476

can someone tell me what's the common problems with this question??
thanks
by FlyDeath
Sat Jan 19, 2002 4:46 am
Forum: Volume 100 (10000-10099)
Topic: 10062 - Tell me the frequencies!
Replies: 235
Views: 36448

10062 - Tell me the frequencies!

What should the answer be if the input is a blank line??
thanks

Go to advanced search