반응형

코딩놀이! 10 Days of Statistics(HackerRank)

 Day 3-3: Drawing Marbles



8번째 문제! 

이번 문제는! 구술주머니? 정도 생각하면 되겠네요 ㅋㅋ

Objective 
In this challenge, we're reinforcing what we've learned today. In case you've missed them, today's tutorials are on Conditional Probability and Combinations and Permutations

Task 
A bag contains  red marbles and  blue marbles. Then,  marbles are drawn from the bag, at random, without replacement. If the first marble drawn is red, what is the probability that the second marble is blue?

1 / 12
7 / 12
1 / 6
2 / 3



문제해석! 

1. 주머니에 붉은색 3개, 파란색 4개 들어있음.

2. 2장 연속으로 뽑는다!

3. 첫번째가 붉은색 이나옴

4. 두번째에 파랑이 나올 확률은?


풀이!

1. 전체 7 개

2. 빨강뽑으면 나머지 6개중 파란색이 4개임

3. 4/6 은 2/3이 답이네요 ㅎ










2,3일차 문제는 대부분 이런 문제입니다. 짧게 짧게 skip!~할게요

(드디어 3일차 마지막 문제!..후 재미없었고 도움없는 느낌 이였습니다 ㅎ)

(출처:https://www.hackerrank.com/challenges/s10-mcq-6/problem)



반응형

+ Recent posts