File tree
Expand file treeCollapse file tree1 file changed
+35
-0
lines changed Expand file treeCollapse file tree1 file changed
+35
-0
lines changed Original file line number | Diff line number | Diff line change |
---|
|
| 1 | +#!/bin/python3 |
| 2 | + |
| 3 | +import math |
| 4 | +import os |
| 5 | +import random |
| 6 | +import re |
| 7 | +import sys |
| 8 | + |
| 9 | +# |
| 10 | +# Complete the 'gradingStudents' function below. |
| 11 | +# |
| 12 | +# The function is expected to return an INTEGER_ARRAY. |
| 13 | +# The function accepts INTEGER_ARRAY grades as parameter. |
| 14 | +# |
| 15 | + |
| 16 | +def gradingStudents(grades): |
| 17 | +# Write your code here |
| 18 | + |
| 19 | +if __name__ == '__main__': |
| 20 | +fptr = open(os.environ['OUTPUT_PATH'], 'w') |
| 21 | + |
| 22 | +grades_count = int(input().strip()) |
| 23 | + |
| 24 | +grades = [] |
| 25 | + |
| 26 | +for _ in range(grades_count): |
| 27 | +grades_item = int(input().strip()) |
| 28 | +grades.append(grades_item) |
| 29 | + |
| 30 | +result = gradingStudents(grades) |
| 31 | + |
| 32 | +fptr.write('\n'.join(map(str, result))) |
| 33 | +fptr.write('\n') |
| 34 | + |
| 35 | +fptr.close() |
You can’t perform that action at this time.
0 commit comments