Type: Default 1000ms 256MiB

shenchuan的CF段位

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

Problem Description

重庆邮电大学ACM集训队招新了!

招新方式:

1、通过寒暑假考核入队。

2、Codeforces 分数>=1700 或者 atcoder 分数>=1500

Codeforces 分数(Rating)段位分布:

0 ≤ Rating < 1200, Newbie

1200 ≤ Rating < 1400, Pupil

1400 ≤ Rating < 1600, Specialist

1600 ≤ Rating < 1900, Expert

1900 ≤ Rating < 2100, Candidate Master

2100 ≤ Rating < 2300, Master

2300 ≤ Rating < 2400, International Master

2400 ≤ Rating < 2600, Grandmaster

2600 ≤ Rating < 3000, International Grandmaster

3000 ≤ Rating < 4000, Legendary Grandmaster

4000 ≤ Rating , Tourist

shenchuanshenchuan作为ACM集训队团委书记,他将担任此次招新工作负责人。现在有nn个人,每个人会给出他的codeforces分数,shenchuanshenchuan需要判断出他在哪个段位并判断他是否能够入队。由于人数实在太多,shenchuanshenchuan希望能够用程序解决这一问题,聪明的你能帮帮他吗?

注意,分数达到1700可以进队。

Input Format

第一行一个整数nn,表示参与招新的人数。

接下来nn行,每行一个整数xx,表示此人的codeforces分数。

Output Format

输出nn行。 首先给出该人的codeforces 段位,再输出能否入队,可以入队输出 Yes,否则输出No,二者之间中间用空格隔开。

Sample

输入 #1

2
1400
1790

输出 #1

Specialist No
Expert Yes

输入 #2

2
0
3999

输出 #2

Newbie No
Legendary Grandmaster Yes

Hint

1≤n≤1031\leq n \leq 10^3 ,0≤x≤1090\leq x \leq 10^9

第十届重庆邮电大学萌新赛

Not Attended
Status
Done
Rule
XCPC
Problem
12
Start at
2024-10-19 13:00
End at
2024-10-19 18:00
Duration
5 hour(s)
Host
Partic.
2