セクション 2. 章 2
single
Challenge: Solving the Task Using Inclusion-Exclusion Principle
メニューを表示するにはスワイプしてください
タスク
スワイプしてコーディングを開始
Let's imagine one situation that may be real for you. You have a tasty basket with:
5cookies with a cherry jam,5chocolate cookies,10chocolate candies,5chocolate bars,15biscuits,10bottles of lemonade.
Calculate the probability that you will randomly pull out an item that includes chocolate, or a cookie.
We can divide our food into influential groups:
- The first one: cookies (ones with cherry jam and chocolate).
- The second one: is chocolate items (chocolate bars, candies, and chocolate cookies).
Follow the algorithm:
- Calculate the probability of pulling out a cookie.
- Calculate the probability of pulling out item that includes chocolate (chocolate sweet).
- Calculate the probability of pulling out a chocolate cookie.
- Calculate the resulting probability.
解答
すべて明確でしたか?
フィードバックありがとうございます!
セクション 2. 章 2
single
AIに質問する
AIに質問する
何でも質問するか、提案された質問の1つを試してチャットを始めてください