We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
  • HackerRank Home

    HackerRank

  • |
  • Prepare
  • Certify
  • Compete
  • Hiring developers?
  1. Prepare
  2. Tutorials
  3. 10 Days of Statistics
  4. Day 5: Normal Distribution II

Day 5: Normal Distribution II

Problem
Submissions
Leaderboard
Discussions
Editorial

Objective
In this challenge, we go further with normal distributions. We recommend reviewing the previous challenge's Tutorial before attempting this problem.

Task
The final grades for a Physics exam taken by a large group of students have a mean of and a standard deviation of . If we can approximate the distribution of these grades by a normal distribution, what percentage of the students:

  1. Scored higher than (i.e., have a )?
  2. Passed the test (i.e., have a )?
  3. Failed the test (i.e., have a )?

Find and print the answer to each question on a new line, rounded to a scale of decimal places.

Input Format

There are lines of input (shown below):

70 10
80
60

The first line contains space-separated values denoting the respective mean and standard deviation for the exam. The second line contains the number associated with question . The third line contains the pass/fail threshold number associated with questions and .

If you do not wish to read this information from stdin, you can hard-code it into your program.

Output Format

There are three lines of output. Your answers must be rounded to a scale of decimal places (i.e., format):

  1. On the first line, print the answer to question (i.e., the percentage of students having ).
  2. On the second line, print the answer to question (i.e., the percentage of students having ).
  3. On the third line, print the answer to question (i.e., the percentage of students having ).

Author

AvmnuSng

Difficulty

Easy

Max Score

30

Submitted By

16800

Need Help?


View discussions
View editorial
View top submissions

rate this challenge

MORE DETAILS

Download problem statement
Download sample test cases
Suggest Edits
  • Blog
  • Scoring
  • Environment
  • FAQ
  • About Us
  • Support
  • Careers
  • Terms Of Service
  • Privacy Policy