/** * Created by YangYuan on 2017/12/8. */ public class Problem2004 { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); while (scanner.hasNext()) { int score = scanner.nextInt(); if (score >= 90 && score <= 100) System.out.println("A"); else if (score >= 80 && score <= 89) System.out.println("B"); else if (score >= 70 && score <= 79) System.out.println("C"); else if (score >= 60 && score <= 69) System.out.println("D"); else if (score >= 0 && score <= 59) System.out.println("E"); else System.out.println("Score is error!"); } } }
HDOJ 2004 成绩转换
最新推荐文章于 2022-07-02 16:44:57 发布