Search found 5 matches

by tkcn
Thu Jun 10, 2010 8:46 pm
Forum: Bugs and suggestions
Topic: [10128 - Queue] test case is not correct
Replies: 0
Views: 2035

[10128 - Queue] test case is not correct

Hello.
I try to solve this problem, but always got WA.

In this problem, if n =1, then l and r should be 1.
But I write a program to test this condition, and I got an unanticipated result.

Following is my test program:

int _t = in.nextInt();
for (int _l = 0; _l < _t; _l++) {
int n = in.nextInt ...
by tkcn
Tue Jun 08, 2010 8:08 am
Forum: Volume 111 (11100-11199)
Topic: 11176 - Winning Streak
Replies: 18
Views: 16340

Re: 11176 - Winning Streak

Hi.
Finally, I was solved this problem.
I was misunderstanding Ivan said, try to calculate the "count" of "from i consecutive games you get no more than j consecutive wins",
but what we need is the "probability".

Thanks.
by tkcn
Fri Jun 04, 2010 3:59 pm
Forum: Volume 7 (700-799)
Topic: 763 - Fibinary Numbers
Replies: 40
Views: 23689

Re: 763 - Fibinary Numbers

Hello.
I solved this problem just a moment ago.

I noticed that the problem said:
Write a program that takes two valid Fibinary numbers and prints the sum in Fibinary form. These numbers will have at most 100 digits.

I consider it means the sum of two values is at most 100 digits at first, but ...
by tkcn
Fri Jun 04, 2010 9:04 am
Forum: Volume 111 (11100-11199)
Topic: 11176 - Winning Streak
Replies: 18
Views: 16340

Re: 11176 - Winning Streak

Hello.
I am trying to solve this problem.
I already used DP to calculate the number of "from i consecutive games you get no more than j consecutive wins", just like Ivan said.
But I still confused how to derive the correct answer from this DP table.

My biggest problem is, for example i=3 and j=1 ...
by tkcn
Fri May 28, 2010 4:38 pm
Forum: Volume 103 (10300-10399)
Topic: 10375 - Choose and divide
Replies: 23
Views: 16623

Re: 10375 - Choose and Divide

If you are using Java and keep getting WA, you might want to try using C/C++. At first I converted the program in the 1st thread into a Java program. I also took the suggestion in the 2nd thread and converted the 6 loops into a single loop. However that got me WA whether I use Math.log10 or Math ...

Go to advanced search