Search found 24 matches

by Victor Barinov
Mon Aug 08, 2005 1:36 pm
Forum: Volume 108 (10800-10899)
Topic: 10888 - Warehouse
Replies: 19
Views: 12345

10888 - Warehouse

Hi, All! Can anybody help me to solve this problems ?!

On contest I tried to solve p10888-Warehouse. My algo used BFS and Hungarian algo, but I got TLE.

I can't think out any idea to solve 10890. But I very want to did them. Help me please!

:cry: :cry: :cry:

Thanks!
by Victor Barinov
Sat May 21, 2005 11:39 pm
Forum: Volume 108 (10800-10899)
Topic: 10853 - Pablito nailed a nail
Replies: 10
Views: 3358

I not understand exactly...

Can you describe your solution in detail? What do you mean when say O(1)? Thanks!
by Victor Barinov
Sat Apr 30, 2005 7:47 pm
Forum: Volume 108 (10800-10899)
Topic: 10834 - The Story of Two Coins
Replies: 18
Views: 4279

10834 - The Story of Two Coins. Help, please!

Hello everybody! I can not understand what is wrong with my code. I always get WA. Maby anyone give me some tests or hints?. Thanks! Here is my code: #include <stdio.h> #include <math.h> #define Pi 3.1415926535897932384626433832795 #define eps 1e-8 int main() { int cas = 0; double R, r, tx, ty, px, ...
by Victor Barinov
Mon Oct 11, 2004 5:29 pm
Forum: Volume 107 (10700-10799)
Topic: 10716 - Evil Straw Warts Live
Replies: 1
Views: 3017

10716 - Evil Straw Warts Live

Can anybody explain how to sovle such problems?
by Victor Barinov
Thu Oct 07, 2004 8:41 pm
Forum: Volume 107 (10700-10799)
Topic: 10729 - Treequivalence
Replies: 3
Views: 3790

10729 - Treequivalence

Hello to Everybody!

Can anybody help me, say any hints, how to solve this problem?

Thank You!
by Victor Barinov
Sun Oct 03, 2004 8:37 pm
Forum: Volume 107 (10700-10799)
Topic: 10719 - Quotient Polynomial
Replies: 51
Views: 17161

I got AC.

My mistake was very silly. I forgot that k may be negative :oops:
But now I got AC, and I very happy. :D
Thanks to everybody who tried to help me!
by Victor Barinov
Sun Oct 03, 2004 7:48 pm
Forum: Volume 107 (10700-10799)
Topic: 10719 - Quotient Polynomial
Replies: 51
Views: 17161

output???

Can anybody give me correct output file for this input:

3
1 -7 15 -8
3
1 -7 15 -9
3
1
3
0 0 0 0 5
by Victor Barinov
Sun Oct 03, 2004 11:25 am
Forum: Volume 107 (10700-10799)
Topic: 10719 - Quotient Polynomial
Replies: 51
Views: 17161

My algorithm:

///// c[] - array of coefficients p(x) ..... lc = 0; for (i = 1; i < n; ++i) { cc = k*lc + c ; /// calculating coefficient for q(x) printf(" %ld", cc); /// out coefficient for q(x) lc = cc; } cc = k*lc + c ; /// calculating reminder r printf("\nr = %ld\n", cc); /// out reminder r .... May be you can...
by Victor Barinov
Sun Oct 03, 2004 10:08 am
Forum: Volume 107 (10700-10799)
Topic: 10719 - Quotient Polynomial
Replies: 51
Views: 17161

10719 - Quotient Polynomial

I cant uderstand what is wrong.
Help, please :cry:

Go to advanced search