import java.util.Scanner; public class Main { public static void main(String[] agrs){ Scanner scan = new Scanner(System.in); while (scan.hasNext()){ int score = scan.nextInt(); if (score < 0 || score > 100) { System.out.println("Score is error!"); } else switch (score / 10){ case 0: case 1: case 2: case 3: case 4: case 5: System.out.println("E");break; case 6: System.out.println("D");break; case 7: System.out.println("C");break; case 8: System.out.println("B");break; case 9: case 10: System.out.println("A");break; } } } }
hdu_2004 成绩转换
最新推荐文章于 2019-10-11 01:10:26 发布