Search found 73 matches

by sjn
Sun Apr 29, 2007 9:34 am
Forum: Volume 5 (500-599)
Topic: 574 - Sum It Up
Replies: 46
Views: 14063

I LIKE GN wrote:hello all...
please give me some I/O
i know it's stupid mistake!!!!
one thing
for t=0 i print
0
0+0
0+0+0
...
depending on number of zeros in X1 up to Xn
there seems to be no such case where T = 0
by sjn
Sun Apr 29, 2007 7:07 am
Forum: Volume 5 (500-599)
Topic: 574 - Sum It Up
Replies: 46
Views: 14063

Input: 4 6 4 3 2 2 1 1 5 3 2 1 1 400 12 50 50 50 50 50 50 25 25 25 25 25 25 6 1 2 7 1 7 131 12 99 80 70 60 50 40 30 20 10 10 10 2 18 12 3 3 3 3 3 3 3 3 3 3 3 3 24 12 2 2 2 2 2 2 2 2 2 2 2 2 11 4 4 3 2 1 999 1 999 4 1 4 4 3 4 1 1 12 6 4 4 4 4 3 1 30 11 11 10 9 8 7 6 5 4 3 2 1 4 6 4 3 2 2 1 4 0 0 Out...
by sjn
Sun Apr 29, 2007 7:04 am
Forum: Volume 5 (500-599)
Topic: 574 - Sum It Up
Replies: 46
Views: 14063

Re: 574 Sum It Up. WA can you tell me some inputs?

watershed wrote:

Code: Select all

INPUT:
999 1 999

CORRECT OUTPUT:
NONE

That's totally WRONG!!! :evil: :evil: :evil:

the CORRECT OUTPUT should be 999
by sjn
Fri Apr 20, 2007 3:13 am
Forum: Volume 100 (10000-10099)
Topic: 10000 - Longest Paths
Replies: 160
Views: 36484

Jan wrote:Some of your cases are not correct I think. However, here are some cases where your code fails.
...
Hope these help.
Thank you very much, JAN!

hmmm, it's really helpful.
my problem is that i forgot to add 1 when i prune the part of recalculation.
by sjn
Thu Apr 19, 2007 6:38 pm
Forum: Volume 100 (10000-10099)
Topic: 10000 - Longest Paths
Replies: 160
Views: 36484

keeping WA

keeping WA (pass all the test cases which i could find on the board) any idea??? :roll: Remove after AC, the following test cases are valid. Input: 2 1 1 2 0 0 5 3 1 2 3 5 3 1 2 4 4 5 0 0 5 5 5 4 5 3 5 2 5 1 4 1 4 2 0 0 8 1 7 1 8 1 1 3 2 3 4 3 3 5 6 2 0 0 6 1 1 2 1 5 2 3 3 4 4 5 5 6 0 0 2 1 1 2 0 0 ...
by sjn
Mon Apr 16, 2007 8:43 am
Forum: Volume 7 (700-799)
Topic: 785 - Grid Colouring
Replies: 27
Views: 13699

rio wrote: Actually, your assumption was right.
cin.getline(input, 80) means inputs 80 character including \0, so it actually reads 79 character.
many thx for your explanation! it seems trivial, but great to me!
by sjn
Mon Apr 16, 2007 7:28 am
Forum: Volume 7 (700-799)
Topic: 785 - Grid Colouring
Replies: 27
Views: 13699

My problem was that I assumed that there were at most 80 characters per line.

When I changed to 81, like cin.getline(input, 81) or just gets(input), it passed.

/sjn
by sjn
Mon Apr 09, 2007 8:19 am
Forum: Volume 2 (200-299)
Topic: 203 - Running Lights Visibility Calculator
Replies: 22
Views: 5664

hi

I have some concern here: 1) if the bearing is 359.995 < 0.00 but the output should be 0.00, then what is its light configurations? Green Masthead Red or Green Red Masthead? 2) if the bearing is 0.001 > 0.00 but the output should also be 0.00, then what is its light configurations? Green Masthead Re...
by sjn
Mon Apr 02, 2007 4:51 pm
Forum: Volume 2 (200-299)
Topic: 203 - Running Lights Visibility Calculator
Replies: 22
Views: 5664

what's for ?

Code: Select all

Sample Test Data Set 3
3
Ownship
0.0 0.0 90.0 10.0
Ship001
1.0 0.0 90.0 10.0
Ship002
-1.0 -0.0 90.0 10.1
Ship003
0.0 1.0 135.0 14.14
by sjn
Mon Apr 02, 2007 3:45 pm
Forum: Volume 2 (200-299)
Topic: 203 - Running Lights Visibility Calculator
Replies: 22
Views: 5664

more I/O?

anybody can provide more I/O?
thx in advance
by sjn
Thu Mar 29, 2007 8:17 pm
Forum: Volume 6 (600-699)
Topic: 698 - Index
Replies: 21
Views: 8360

can anybody give more cases?
i pass all the test cases above, but still WA :-((((
by sjn
Fri Mar 02, 2007 7:32 am
Forum: Volume 107 (10700-10799)
Topic: 10775 - Mystical Matrix
Replies: 12
Views: 5622

what about N=5?
by sjn
Tue Feb 10, 2004 1:32 pm
Forum: Volume 3 (300-399)
Topic: 358 - Don't Have A Cow
Replies: 52
Views: 10814

Code: Select all

R = 6534, P = 0.24, Rope = 4896.72

R = 54654, P = 0.24, Rope = 45239.76

R = 934959, P = 0.26, Rope = 787659.93

R = 459876, P = 0.44, Rope = 565385.06
hope helpful
by sjn
Tue Feb 10, 2004 12:18 pm
Forum: Volume 6 (600-699)
Topic: 657 - The die is cast
Replies: 46
Views: 21630

I got AC!
How careless i am :-?

but many tks to galois_godel :D
by sjn
Mon Feb 09, 2004 8:15 pm
Forum: Volume 6 (600-699)
Topic: 657 - The die is cast
Replies: 46
Views: 21630

RTE WHY?

I tried several times and always got RTE
it is so strange
hope some one can help me :(

thx in advance

Go to advanced search