Python 15

Python 100 [Python 100] Python 100

>=90A60-89B60C

(a>b) ? a:b

(Python 2.x)

#!/usr/bin/python # -*- coding: UTF-8 -*- score = int(raw_input(':\n')) if score >= 90: grade = 'A' elif score >= 60: grade = 'B' else: grade = 'C' print '%d %s' % (score,grade)

(Python 3.x)

#!/usr/bin/python3 score = int(input(':\n')) if score >= 90: grade = 'A' elif score >= 60: grade = 'B' else: grade = 'C' print ('%d %s' % (score,grade))

:
89
89  B

Python 100 [Python 100] Python 100