import java.util.Scanner;
public class Main {
public static void main
(String[] args
) { Scanner scanner
= new Scanner
(System.
in);
System.
out.
print("テストの点数を入力してください:"); int score = scanner.nextInt();
System.
out.
print("レポートの提出回数を入力してください:"); int submitCount = scanner.nextInt();
Prog prog = new Prog(score, submitCount);
prog.showGrade();
}
}
class Prog {
int score;
int submitCount;
Prog(int score, int submitCount) {
this.score = score;
this.submitCount = submitCount;
}
int getGrade() {
return (score > submitCount * 5) ? score : submitCount * 5;
}
void showGrade() {
System.
out.
println("成績評価:" + getGrade
()); }
}
aW1wb3J0IGphdmEudXRpbC5TY2FubmVyOwoKcHVibGljIGNsYXNzIE1haW4gewogICAgcHVibGljIHN0YXRpYyB2b2lkIG1haW4oU3RyaW5nW10gYXJncykgewogICAgICAgIFNjYW5uZXIgc2Nhbm5lciA9IG5ldyBTY2FubmVyKFN5c3RlbS5pbik7CiAgICAgICAgCiAgICAgICAgU3lzdGVtLm91dC5wcmludCgi44OG44K544OI44Gu54K55pWw44KS5YWl5Yqb44GX44Gm44GP44Gg44GV44GE77yaIik7CiAgICAgICAgaW50IHNjb3JlID0gc2Nhbm5lci5uZXh0SW50KCk7CiAgICAgICAgCiAgICAgICAgU3lzdGVtLm91dC5wcmludCgi44Os44Od44O844OI44Gu5o+Q5Ye65Zue5pWw44KS5YWl5Yqb44GX44Gm44GP44Gg44GV44GE77yaIik7CiAgICAgICAgaW50IHN1Ym1pdENvdW50ID0gc2Nhbm5lci5uZXh0SW50KCk7CiAgICAgICAgCiAgICAgICAgUHJvZyBwcm9nID0gbmV3IFByb2coc2NvcmUsIHN1Ym1pdENvdW50KTsKICAgICAgICBwcm9nLnNob3dHcmFkZSgpOwogICAgfQp9CgpjbGFzcyBQcm9nIHsKICAgIGludCBzY29yZTsKICAgIGludCBzdWJtaXRDb3VudDsKICAgIAogICAgUHJvZyhpbnQgc2NvcmUsIGludCBzdWJtaXRDb3VudCkgewogICAgICAgIHRoaXMuc2NvcmUgPSBzY29yZTsKICAgICAgICB0aGlzLnN1Ym1pdENvdW50ID0gc3VibWl0Q291bnQ7CiAgICB9CiAgICAKICAgIGludCBnZXRHcmFkZSgpIHsKICAgICAgICByZXR1cm4gKHNjb3JlID4gc3VibWl0Q291bnQgKiA1KSA/IHNjb3JlIDogc3VibWl0Q291bnQgKiA1OwogICAgfQogICAgCiAgICB2b2lkIHNob3dHcmFkZSgpIHsKICAgICAgICBTeXN0ZW0ub3V0LnByaW50bG4oIuaIkOe4vuipleS+oe+8miIgKyBnZXRHcmFkZSgpKTsKICAgIH0KfQ==