def gradingStudents(grades):
    # Write your code here
    result = []
    for grade in grades:
        if grade < 38:
            result.append(grade)
        else:
            r = grade % 5
            grade = grade + (5 - r) if r > 2 else grade
            result.append(grade)
            
    return result

'# 코딩 문제 관련 > 파이썬' 카테고리의 다른 글

[HackerRank-python] Number Line Jumps  (0) 2022.07.01
[HackerRank-python] Apple and Orange  (0) 2022.06.29
백준 7569번(python)  (0) 2020.08.02
백준 7576번(python)  (0) 2020.08.02
백준 2606번(python)  (0) 2020.08.01