diff --git a/Algorithms/02. Implementation/001. Grading Students.py b/Algorithms/02. Implementation/001. Grading Students.py index 529fbdc..17506a9 100644 --- a/Algorithms/02. Implementation/001. Grading Students.py +++ b/Algorithms/02. Implementation/001. Grading Students.py @@ -1,9 +1,7 @@ # Problem: https://www.hackerrank.com/challenges/grading/problem # Score: 10 - for _ in range(int(input())): grade = int(input()) - if grade >= 38 and grade % 5 >= 3: - grade = (grade + 5) // 5 * 5 + grade = grade-grade%5+5 if grade%5>2 and grade>=38 else grade print(grade)