Search found 35 matches

by C
Mon May 15, 2006 11:18 pm
Forum: Volume 110 (11000-11099)
Topic: 11028 - Sum of Product
Replies: 24
Views: 12953

Any hint about how to calculate? Is there a formula? I have tried to get a formula, but without success..
by C
Mon May 15, 2006 7:46 pm
Forum: Volume 110 (11000-11099)
Topic: 11032 - Function Overloading
Replies: 43
Views: 17091

There are 2 self numbers in segments[108,110], and they are 108 and 110
by C
Mon May 15, 2006 5:56 pm
Forum: Volume 110 (11000-11099)
Topic: 11029 - Leading and Trailing
Replies: 43
Views: 17864

why WR

Please help me,I have read all posts here, but have no idea..
My code is:

Code: Select all

AC ed..
by C
Mon May 15, 2006 12:28 am
Forum: Volume 110 (11000-11099)
Topic: 11029 - Leading and Trailing
Replies: 43
Views: 17864

Let C = A^B, lg(C) = B*lg(A), lg - decimal logarithm lg(x) = ln(X)/ln(10). First three digits of C are first three digits of mantissa of lg(C). That's how I got AC (not sure about mathematical correctness). kp: I really don't understand,why first three digits of C are first three digits of mantissa...
by C
Mon May 15, 2006 12:22 am
Forum: Volume 110 (11000-11099)
Topic: 11032 - Function Overloading
Replies: 43
Views: 17091

I have changed my code not to use so many sod-s, but I still got TLE,help.....
by C
Sun May 14, 2006 8:40 pm
Forum: Volume 110 (11000-11099)
Topic: 11032 - Function Overloading
Replies: 43
Views: 17091

why TLE

I precalculated all self-number and filled the table with 0, or else is the value in the table 1, so I used linear time to search,but i got TLE,why??
BTW it runs very quickly on my pc(<3s),and I have tried with input 1 10000000!
by C
Tue May 02, 2006 5:03 pm
Forum: Volume 109 (10900-10999)
Topic: 10960 - The Party, Part II
Replies: 4
Views: 2272

Can someone perhaps give me some more I/O datas ??
Thanks!
by C
Sun Apr 30, 2006 8:20 pm
Forum: Volume 109 (10900-10999)
Topic: 10962 - Don Giovanni's Last Dinner
Replies: 15
Views: 5863

Double maks trouble. When I used double, i got always wa. And i followd little joey's advice that used 1/(R*r) as unit of time and then all times are integer and finally got AC.
by C
Fri Apr 28, 2006 6:40 pm
Forum: Volume 109 (10900-10999)
Topic: 10997 - Medals
Replies: 10
Views: 2780

Thanks mf! I found my mistake. My algorithm is wrong...
by C
Thu Apr 27, 2006 4:31 pm
Forum: Volume 109 (10900-10999)
Topic: 10997 - Medals
Replies: 10
Views: 2780

I got WA. But I don't know why.
I generally sorted the g,s,b in all possible order(3!=6), if there is a way so that Canada rank frist,exists also i,j,k. Or else Canada cannot win.

Can someone give me some I/O data. PLZ ! Thanks in advance.
by C
Thu Apr 27, 2006 2:53 pm
Forum: Volume 109 (10900-10999)
Topic: 10999 - Crabbles
Replies: 26
Views: 14086

GREAT!!! After several TLE i finally got AC and used 0.66. I did it with insert sort, and i think there may be no worse case, so i got TLE, and then i decided using heap sort, and it is greated changed. I am happy :P . To more algorithmus , I shall say, i use c and so only array for dictionary, and ...
by C
Tue Apr 25, 2006 8:40 pm
Forum: Volume 109 (10900-10999)
Topic: 10980 - Lowest Price in Town
Replies: 28
Views: 11611

actually i have solved this problem long time ago , at first i got WA because i didn't consider that we can use items more than once ( of course if it has more profit ) , i hope it helps arsalan,thanks,but i have thought this point. Well I use DP, and the recurrence looks like, p[n]= min(p[n-c ]+q ...
by C
Sat Apr 22, 2006 9:40 pm
Forum: Volume 109 (10900-10999)
Topic: 10980 - Lowest Price in Town
Replies: 28
Views: 11611

I also got WA.

I had the same output with all the given input. And I use DP.
But I got WA. I don't even know where may be wrong.
Can anyone help me, I can send my code to u.
by C
Wed Apr 19, 2006 7:32 pm
Forum: Volume 109 (10900-10999)
Topic: 10998 - Flipping Colors
Replies: 15
Views: 3626

little joey wrote:Because both codes are (almost) accepted solutions to problems, would you be so kind, Mr. C., to remove them?
Sure 8)
by C
Wed Apr 19, 2006 1:28 am
Forum: Volume 109 (10900-10999)
Topic: 10998 - Flipping Colors
Replies: 15
Views: 3626

mamun wrote:I just copied and pasted your posted solution and got AC.
So what's the problem?
Yes, now I get AC, but yesterday I really got WA..

Go to advanced search