Search found 73 matches

by FlyDeath
Wed Nov 19, 2003 4:15 pm
Forum: Volume 1 (100-199)
Topic: 163 - City Directions
Replies: 24
Views: 10385

163 - City Directions

I've worked hours on this problem but I still got WA.Is there any trick in this problem?Are there empty lines in the input? By the way,I've got several test cases: [c] A2W S1N W GO STRAIGHT 2 TURN LEFT TURN LEFT GO 2 TURN LEFT STOP A2W S1N W GO STRAIGHT 2 TURN LEFT TURN LEFT GO 1 TURN LEFT STOP A2W ...
by FlyDeath
Mon Nov 17, 2003 2:41 pm
Forum: Other words
Topic: the judge is down?
Replies: 5
Views: 1887

the judge is down?

I got this when I try to check the online judge status: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you...
by FlyDeath
Wed Jan 22, 2003 3:56 pm
Forum: Volume 1 (100-199)
Topic: 150 - Double Time
Replies: 18
Views: 3672

OH MY GOD!!

I misspell February :( (I writed it as "Febuary" before)

Don't bother with this question anymore.(I guess what I really need is to improve my English :cry: )
by FlyDeath
Wed Jan 22, 2003 3:01 pm
Forum: Volume 1 (100-199)
Topic: 150 - Double Time
Replies: 18
Views: 3672

[150]WA

My method is building up a array that denote each day in both old and new style.Suppose that 1 January 1600 in new style is the first day(=22 December 1599 in old style),and so on. I've checked almost every test data.(I used a program to print everyday from 1 January 1600 to 31 December 2099).And It...
by FlyDeath
Sat Dec 21, 2002 2:48 pm
Forum: Volume 1 (100-199)
Topic: 116 - Unidirectional TSP
Replies: 226
Views: 36118

I think everyone get WA can try this:

Code: Select all

input:
6 7
1 9 9 1 9 9 9
9 1 1 9 9 9 9
9 9 9 9 1 1 1
9 9 9 1 9 9 9
9 9 1 9 9 9 9
9 1 9 9 1 1 1

output:
1 2 2 1 6 6 6
7
Althought I still get WA(I'm trying to find the mistake :evil: ),but I think this is a test case that many program will make mistake.
by FlyDeath
Sat Dec 21, 2002 2:07 pm
Forum: Volume 1 (100-199)
Topic: 138 - Street Numbers
Replies: 93
Views: 7122

The problem is that you have to find out 10 pairs of n,m which 1+2+3+4+.....+n=n+(n+1)+(n+2)+.....+m
An example is 6 and 8.1+2+3+4+5+6=21=6+7+8
You need to find out the first 10 pairs that satisfy this condition.
by FlyDeath
Thu Dec 19, 2002 2:44 pm
Forum: Volume 1 (100-199)
Topic: 102 - Ecological Bin Packing
Replies: 485
Views: 49653

ya.I got it.Sorry for asking such a stupid question like this.(I didn't read it very carefully :( )
by FlyDeath
Thu Dec 19, 2002 2:27 pm
Forum: Volume 1 (100-199)
Topic: 102 - Ecological Bin Packing
Replies: 485
Views: 49653

Can I ask a small question?What does "scanf(....)==9" means?Doesnt that means I read 9 stuff with the function scanf?Or 9 is a special constant?(I really don't know this :o )
by FlyDeath
Wed Dec 18, 2002 3:29 pm
Forum: Volume 100 (10000-10099)
Topic: 10018 - Reverse and Add
Replies: 169
Views: 17902

I suggest you use long or long lon instead of int.
by FlyDeath
Wed Dec 18, 2002 3:07 pm
Forum: Volume 4 (400-499)
Topic: 488 - Triangle Wave
Replies: 270
Views: 30835

Please put your code like this.It is easier to read.Thanks. [cpp] #include<stdio.h> void main(){ int i,j,k,m,n; while(scanf("%d %d",&i,&m)==2){ for(n=1;n<(m+1);n++) { for(j=1;j<i;j++){ for(k=1;k<(j+1);k++){ printf("%d",j); } printf("\n"); } for(k=1;k<(i+1);k++){ printf("%d",i); } printf("\n"); for(j...
by FlyDeath
Wed Dec 18, 2002 2:42 pm
Forum: Volume 104 (10400-10499)
Topic: 10416 - Folding My T-Shirt
Replies: 13
Views: 7949

oops.I found that error.(I made some mistake when I calculate this.)Really thank you :D .
by FlyDeath
Mon Dec 16, 2002 3:17 pm
Forum: Volume 104 (10400-10499)
Topic: 10416 - Folding My T-Shirt
Replies: 13
Views: 7949

I really cant find the mistake :evil:.Can someone send me .exe file of this problem which can run under Windows XP?That way,I can use it for debugging.Really thanks. I'll put my WA code below.Maybe someone will find the mistake :( [cpp] #include <stdio.h> #include <math.h> #define MAX 100 class poin...
by FlyDeath
Sat Dec 14, 2002 2:52 pm
Forum: Volume 104 (10400-10499)
Topic: 10416 - Folding My T-Shirt
Replies: 13
Views: 7949

I use the other method.I thought it was right,but I always got WA. My method is: if there is A points. 1)If A is odd.Then I draw a line between every point n and the middle point of (n+(A-1)/2) and (n+(A-1)/2+1).Then check if it is OK. 2)If A is even.Then I draw a line between every point n and n+A/...
by FlyDeath
Sat Dec 14, 2002 4:06 am
Forum: Volume 100 (10000-10099)
Topic: 10069 - Distinct Subsequences
Replies: 26
Views: 11613

10069 - Distinct Subsequences

I really have no idea that why I got WA(I thought it was just a simple DP problem). Is there any special test case? I'll put my WA code below. [cpp] #include <stdio.h> #include <string.h> #define MAX 10000 #define max 100 #define _MAX_SIZE 101 #define BIGNUM #ifndef stdio #include <stdio.h> #endif #...
by FlyDeath
Thu Mar 28, 2002 3:23 pm
Forum: Volume 1 (100-199)
Topic: 139 - Telephone Tangles
Replies: 66
Views: 8289

There will be something like this: 01 MYHOME$30 012 MYFREIND$40 000000 0123333333 50 # the output will be:(p.s. I ignore the spaces) 0123333333 MYFRIEND 3333333 504.00 200.00 (50 and 4.00 stick together ,don't be afraid,just print it.) MYHOME is not acceptable.Why?Because there id 8 digits after "01...

Go to advanced search