Created
March 28, 2017 22:54
-
-
Save prithajnath/38cc3365612da72f5b0ce144ba8e43d9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/python | |
import sys | |
n = int(raw_input().strip()) | |
for a0 in xrange(n): | |
grade = int(raw_input().strip()) | |
# your code goes here | |
if grade < 100 and grade >= 38: | |
x = (grade - (grade%5))+5 | |
if x - grade<3: | |
print x | |
else: | |
print grade | |
else: | |
print grade |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment