Submission #335277


Source Code Expand

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int m = sc.nexInt();
		double km;
		km = m / 1000.0;
		int VV;

		if(k < 0.1) VV = 0;
		else if(k <= 5) VV = (int)km * 10;
		else if(k <= 30) VV = (int)km + 50;
		else if(k >= 35 && k <= 70) VV = ((int)km - 30) / 5 + 80;
		else if(k > 70) VV = 89;
		
		System.out.println("%02d",VV); 
	}
}

Submission Info

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

Compile Error

./Main.java:5: error: cannot find symbol
		int m = sc.nexInt();
		          ^
  symbol:   method nexInt()
  location: variable sc of type Scanner
./Main.java:10: error: cannot find symbol
		if(k < 0.1) VV = 0;
		   ^
  symbol:   variable k
  location: class Main
./Main.java:11: error: cannot find symbol
		else if(k <= 5) VV = (int)km * 10;
		        ^
  symbol:   variable k
  location: class Main
./Main.java:12: error: cannot find symbol
		else if(k <= 30) VV = (int)km + 50;
		        ^
  symbol:   variable k
  location: class Main
./Main.java:13: error: cannot find symbol
		else if(k >= 35 && k <= 70) VV = ((int)km - 30) / 5 + 80;
		        ^
  symbol:   variable k
  location: class Main
./Main.java:13: error: cannot find symbol
		else if(k >= 35 && k <= 70) VV = ((int)km - 30) / 5 + 80;
		                   ^
  symbol:   variable k
  location: class Main
./Main.java:14: error: cannot find symbol
		else if(k > 70) VV = 89;
		        ^
  symbol:   variable k
  location: class Main
./Main.java:16: error: no su...