Submission #1868025


Source Code Expand

import java.util.Scanner;

/**
 *
 * @author kke2
 */
public class Study {
     public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int i;
        double j;
        i = sc.nextInt();
        j = i / 100;
        if (j >= 60 && j <= 300) {
            j = (j / 10) + 50;
        } else if (j >= 350 && j <= 700) {
            j = (j / 10 - 30) / 5 + 80;
        } else if (j > 700) {
            j = 89;
        }
        int w = (int) j;
        if (j >= 0 && j <= 9) {
            System.out.println("0" + w);
        } else {
            System.out.println(w);
        }
    }

    
}

Submission Info

Submission Time
Task B - 視程の通報
User freed029
Language Java8 (OpenJDK 1.8.0)
Score 0
Code Size 657 Byte
Status CE

Compile Error

./Main.java:7: error: class Study is public, should be declared in a file named Study.java
public class Study {
       ^
1 error