Submission #3819041


Source Code Expand

import sys
 
# 関数 solve は,もちろん,問題に応じて書き換える
def solve(R):
    if R < 1200 :
        return 'ABC'
    elif R < 2800 :
        return 'ARC'
    else :
        return 'AGC'
 
# ここから下は,入力・出力形式が同じであれば,変えなくて良い.
def readQuestion():
    line = sys.stdin.readline().rstrip()
    return int(line)
 
def main():
    n = readQuestion()
    answer = solve(n)
    print(answer)
    
if __name__ == '__main__':
    main()

Submission Info

Submission Time
Task A - Rated for Me
User yun0515
Language Python (3.4.3)
Score 100
Code Size 527 Byte
Status AC
Exec Time 18 ms
Memory 3060 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 9
Set Name Test Cases
Sample a01, a02, a03
All a01, a02, a03, b04, b05, b06, b07, b08, b09
Case Name Status Exec Time Memory
a01 AC 17 ms 3060 KB
a02 AC 17 ms 2940 KB
a03 AC 17 ms 3060 KB
b04 AC 18 ms 3060 KB
b05 AC 17 ms 2940 KB
b06 AC 17 ms 2940 KB
b07 AC 17 ms 2940 KB
b08 AC 17 ms 2940 KB
b09 AC 17 ms 3060 KB