Search found 192 matches

by Red Scorpion
Wed Dec 24, 2003 6:13 pm
Forum: Volume 102 (10200-10299)
Topic: 10212 - The Last Non-zero Digit.
Replies: 63
Views: 30500

Hi, Windows2k. :lol: :lol: :lol: But the question is p(n,m)=n!/(n-m)! the division is not unique , eg. we know the last non-zero digit of n! is 8 , the last non-zero digit of We must factorize n! into this form: 2^i * 3^j * 5^k * 7^l, and find the corresponding i, j, k, and l. eg, n=10. 10! = 1.2.3....
by Red Scorpion
Thu Oct 23, 2003 7:13 am
Forum: Volume 7 (700-799)
Topic: 726 - Decode
Replies: 36
Views: 9728

Hi, everyone.

I have the same problem as you, keyer.

I got many WA, I just simulate what they want.
Is the input just have 3 lines.
#lines1 = known messages.
#lines2 = blank line.
#lines3 = encoded messages.

Or the input have more than 3 ?

Please help. :lol: :lol:
by Red Scorpion
Tue Oct 07, 2003 8:27 am
Forum: Volume 105 (10500-10599)
Topic: 10560 - Minimum Weight
Replies: 7
Views: 5667

Here sample input output: INput: 28243 10 12483 2147 292 99 120 30 19 1 2 99 100000 5 1999 999 2993 1 77777 2000000000 10 1999999999 88888889 99999 1009299 129999 199992 77182 53514 16627 7761800 0 0 output: 10 1 3 9 27 81 243 729 2187 6561 19683 19683-6561-729+81+9 2187-27-9-3-1 243+81-27-9+3+1 81+...
by Red Scorpion
Wed Oct 01, 2003 6:51 am
Forum: Volume 105 (10500-10599)
Topic: 10555 - Dead Fraction
Replies: 35
Views: 15577

hi, Abednego,

the result form :
0.9...

is : 1/1
by Red Scorpion
Wed Oct 01, 2003 6:45 am
Forum: Volume 105 (10500-10599)
Topic: 10555 - Dead Fraction
Replies: 35
Views: 15577

hi, ditrix.
my output exactly same as yours, except for this:
0.0...

.. There is no test case like that.
good luck.
by Red Scorpion
Tue Sep 23, 2003 11:33 am
Forum: Volume 2 (200-299)
Topic: 254 - Towers of Hanoi
Replies: 39
Views: 16385

P-254

Hi, I always got WA.

Can somebody post some I/O for this problem(Towers Of Hanoi).

Please... :cry: :cry:
by Red Scorpion
Tue Sep 23, 2003 7:34 am
Forum: Volume 2 (200-299)
Topic: 215 - Spreadsheet Calculator
Replies: 8
Views: 2958

Oh, sorry Dominik.

I don't write the input-output carefully.
Congratulations you have got AC... :lol: :lol:
by Red Scorpion
Sat Sep 20, 2003 5:29 am
Forum: Volume 2 (200-299)
Topic: 215 - Spreadsheet Calculator
Replies: 8
Views: 2958

input: 2 2 -A1+B1 5 -10+2 3-9 4 4 A0+A1 A1-A3 A3-A3 -9 -10 20 100-10 100+99 -99 990 299 -390+10 12 -199 -199+-99 200 4 4 A1--A2 A2-A3 A3-A3 -9 -10 20 100-10 100+99 -99 990 299 -390+10 12 -199 -199+-99 200 output: 0 1 A -11 5 B -8 -6 A0 = A0+A1 A1 = A1-A3 0 1 2 3 A 9 9 0 -9 B -10 20 90 199 C -99 990...
by Red Scorpion
Wed Sep 10, 2003 10:33 am
Forum: ACM ICPC Archive Board
Topic: 2287 - ?
Replies: 0
Views: 503

2287 - ?

Can anyone help me? :lol: :lol:
by Red Scorpion
Fri Aug 29, 2003 8:59 am
Forum: Volume 8 (800-899)
Topic: 846 - Steps
Replies: 30
Views: 15756

Hi, sajid!! :lol:

There are no input like that's.

Regards to your algo, what's the output for this:
1 7
diff = 7-1 = 6.
step = 6/2 + 2 = 5

The right answer is 4 step.
-> (1 - 2), (2 - 4), (4 - 6), (6 - 7) :lol: :lol:
by Red Scorpion
Sat Aug 23, 2003 9:56 am
Forum: Volume 7 (700-799)
Topic: 787 - Maximum Sub-sequence Product
Replies: 39
Views: 18938

I got AC again.
Thanks Dima. :lol: :lol:
by Red Scorpion
Thu Aug 07, 2003 5:16 am
Forum: Volume 7 (700-799)
Topic: 787 - Maximum Sub-sequence Product
Replies: 39
Views: 18938

Before I got TLE, I solved it using method like greedy. The complexity is O(n), and I think that won't cause TLE.

Maybe you've some test case that will cause TLE, dima?

Huge Thanks.
RS
by Red Scorpion
Wed Aug 06, 2003 7:26 am
Forum: Volume 7 (700-799)
Topic: 787 - Maximum Sub-sequence Product
Replies: 39
Views: 18938

TLE, does anybody know?
by Red Scorpion
Tue Aug 05, 2003 6:41 am
Forum: Volume 104 (10400-10499)
Topic: 10431 - Normal Distribution
Replies: 13
Views: 3322

Whats your output fot the above test case?

I got standard deviation = Nan.

SD = 1/(n-1) * sum sqrt(xi-Mean) .
SD = 1/0 * 0.

Any hint?
:lol:
by Red Scorpion
Mon Aug 04, 2003 6:35 am
Forum: Volume 100 (10000-10099)
Topic: 10036 - Divisibility
Replies: 37
Views: 10659

my code gives "Divisible".

Go to advanced search