编号 题目 状态 分数 总时间 内存 代码 / 答案文件 提交者 提交时间
#18828 #2015. shenchuan的CF段位 Wrong Answer 0 528 ms 19172 K Java / 1.4 K C192022211913 2024-10-19 16:14:19
显示原始代码
import java.util.Scanner;

public class A1 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] scores = new int[n];
        boolean isIn = false;
        String[] dws = new String[n];
        for (int i = 0; i < n; i++) {
            scores[i] = sc.nextInt();
        }
        for (int j = 0; j < n; j++) {
            //			System.out.print(ratings[i]);
            if (0 <= scores[j] & scores[j] < 1200) {
                dws[j] = "Newbie";
            } else if (1200 <= scores[j] & scores[j] < 1400) {
                dws[j] = "Pupil";
            } else if (1400 <= scores[j] & scores[j] < 1600) {
                dws[j] = "Specialist";
            } else if (1600 <= scores[j] & scores[j] < 1900) {
                dws[j] = "Expert";
            } else if (1900 <= scores[j] & scores[j] < 2100) {
                dws[j] = "Candidate Master";
            } else if (2100 <= scores[j] & scores[j] < 2300) {
                dws[j] = "Master";
            } else if (2300 <= scores[j] & scores[j] < 2400) {
                dws[j] = "International Master";
            }

            else if (2400 <= scores[j] & scores[j] < 2600) {
                dws[j] = "Grandmaster";
            } else if (2600 <= scores[j] & scores[j] < 3000) {
                dws[j] = "International Grandmaster";
            } else if (3000 <= scores[j] & scores[j] < 4000) {
                dws[j] = "Legendary Grandmaster";
            } else if (4000 <= scores[j]) {
                dws[j] = "Tourist";
            }

            if (scores[j] >= 1700) {
                isIn = true;
            }

            if (isIn) {
                System.out.print(dws[j] + " "
                    + "Yes");
            } else {
                System.out.print(dws[j] + " "
                    + "No");
            }
            if (j != n - 1) {
                System.out.println();
            }
        }
    }
}
子任务 #1
Wrong Answer
得分:0
测试点 #1
Wrong Answer
得分:0
用时:187 ms
内存:15084 KiB

输入文件(1.in

20
3669
3865
3122
1249
2086
3643
730
3342
1452
1304
3535
3886
3592
1251
3370
1071
3
<23 bytes omitted>

答案文件(1.out

Legendary Grandmaster Yes
Legendary Grandmaster Yes
Legendary Grandmaster Yes
Pupil No
Candidate
<319 bytes omitted>

用户输出

Legendary Grandmaster Yes
Legendary Grandmaster Yes
Legendary Grandmaster Yes
Pupil Yes
Candidate Master Yes
Legendary Grandmast
<277 bytes omitted>

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #2
Wrong Answer
得分:0
用时:341 ms
内存:19172 KiB

输入文件(2.in

1000
259
2414
4622
4211
3558
1968
4316
715
780
1652
1641
452
318
4342
2438
3835
425
<5672 bytes omitted>

答案文件(2.out

Newbie No
Grandmaster Yes
Tourist Yes
Tourist Yes
Legendary Grandmaster Yes
Candidate Master Ye
<17217 bytes omitted>

用户输出

Newbie No
Grandmaster Yes
Tourist Yes
Tourist Yes
Legendary Grandmaster Yes
Candidate Master Yes
Tourist Yes
Newbie Yes
Newbie Y
<16546 bytes omitted>

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0