Submission #370224


Source Code Expand

import java.util.*;
public class main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int VV = sc.nextInt();
		if(VV < 100){
			System.out.println("00");
			
		}else if(100 <= VV&&VV <= 50000){
			VV = VV / 1000;
			System.out.println(VV);
			
		}else if(6000 <= VV&&VV <= 30000){
			VV = VV / 1000 + 50;
			System.out.println(VV);
			
		}else if(350000 <= VV&&VV <= 700000){
			VV = (VV / 1000 - 30) / 5 + 80;
			System.out.println(VV);
			
		}else if(700000 < VV){
			System.out.println("89");
		}
		
		

	}

}

Submission Info

Submission Time
Task B - 視程の通報
User Noel
Language Java (OpenJDK 1.7.0)
Score 0
Code Size 581 Byte
Status CE

Compile Error

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