Wrong Test Case Answer Maybe?

Правка en4, от xuanity, 2024-08-20 17:39:00

Hi guys,

So I was just doing some good old questions around the problemset, i started doing the difficulty of 800 questions, and i came up to this old question which was created from the beta days of codeforces

The question I faced is this: Codeforces Beta Round 9, Problem A

9A: Die Roll

So the question in short stated that Dot is going to throw a dice(die), if the points of the dice(die) thrown by Dot is higher than Yakko and Wakko, she will win, so what is the probability of Dot winning (Maybe i misunderstood or something)

https://codeforces.me/problemset/problem/9/A

and a key point the question stated is: It is known that Yakko and Wakko are true gentlemen, that's why if they have the same amount of points with Dot, they will let Dot win.

So when i take a look at the test case 1, we know that Yakko got 4 and Wakko got 2. So Dot needs 5,6 to win. But since being tied with Yakko or Wakko will also let Dot win because they are gentlemen, therefore we must also include the 4 and 2 to the probability of Dot winning. That makes it 2,4,5,6 to win for Dot. But why does the answer provided is 1/2 which is 3/6, while the correct answer is 4/6 or (2/3) cuz there are 4 numbers that makes Dot win.

Anyone can help solving my problem, Thanks Guys

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en5 Английский xuanity 2024-08-20 17:57:59 6
en4 Английский xuanity 2024-08-20 17:39:00 51
en3 Английский xuanity 2024-08-20 17:38:41 81
en2 Английский xuanity 2024-08-20 17:37:59 69
en1 Английский xuanity 2024-08-20 17:35:18 1274 Initial revision (published)