Search found 9 matches

by dodouuu
Mon Sep 14, 2009 6:08 pm
Forum: Volume 116 (11600-11699)
Topic: 11666 - Logarithms
Replies: 16
Views: 6164

Re: 11666 Logarithms WA again and agian

I think this problem asks for this:

for(l=floor(logn); ; l++){
x = 1-exp(logn-l);
if( fabs(x)<1+eps )return;
}
by dodouuu
Mon Sep 14, 2009 5:21 pm
Forum: Volume 116 (11600-11699)
Topic: 11666 - Logarithms
Replies: 16
Views: 6164

Re: 11666 Logarithms WA again and agian

You help me a lot ^^ thank you very much
by dodouuu
Mon Sep 14, 2009 4:48 pm
Forum: Volume 116 (11600-11699)
Topic: 11666 - Logarithms
Replies: 16
Views: 6164

11666 - Logarithms

I got wrong answer again and again during the contest yesterday. And today, I got wrong answers all day.... Please tell me how to solve this problem. I will appreciate you very much.
by dodouuu
Sat Aug 08, 2009 4:02 pm
Forum: Volume 5 (500-599)
Topic: 525 - Milk Bottle Data
Replies: 4
Views: 3975

Re: 525 - Milk Bottle Data

i guess 8
by dodouuu
Sat Jul 04, 2009 8:17 pm
Forum: Volume 100 (10000-10099)
Topic: 10098 - Generating Fast
Replies: 62
Views: 14051

Re: 10098 - Generating Fast, Sorted Permutation

if(t)
putchar('\n');
else
t=1;

these four lines delete and put printf("\n"); below perm(0); just like


perm(0);
printf("\n");
by dodouuu
Fri Apr 03, 2009 9:53 am
Forum: Volume 104 (10400-10499)
Topic: 10410 - Tree Reconstruction
Replies: 13
Views: 9155

Re: 10410 - Tree Reconstruction

I have passed all the test cases above. However, still wrong answer.... can anyone give me a big amount of test cases and the corresponding outputs. Very appreciate !!!
by dodouuu
Mon Mar 30, 2009 9:37 pm
Forum: Volume 102 (10200-10299)
Topic: 10298 - Power Strings
Replies: 31
Views: 13427

Re: 10298 - Power Strings

Hmm, isn't it obvious? Consider string t obtained from s by a cyclic shift of s by k characters right. How to determine for which values of k, the strings t and s are equal? By definition of equality, it's when s = t = s[(i+k)%n], for 0<=i<n. You can get rid of that modulus by simply concatenating ...
by dodouuu
Wed Mar 25, 2009 11:54 am
Forum: Volume 5 (500-599)
Topic: 567 - Risk
Replies: 46
Views: 16854

Re: 567 (Risk) - Wrong Answer

AC.........
by dodouuu
Tue Mar 24, 2009 7:57 pm
Forum: Volume 5 (500-599)
Topic: 567 - Risk
Replies: 46
Views: 16854

Re: 567 (Risk) - Wrong Answer

I got wrong answer, too can anyone give me some directions? my code: #include <stdio.h> #include <limits.h> #define MAX_L 20 /* max lands */ long long int min(long long int a,long long int b) { if( a > b ) return b; else return a; } int main() { /*freopen("in", "r", stdin); freopen("out", "w", stdou...

Go to advanced search