Submission #308251


Source Code Expand


import java.util.*;
public class Main {	//Mainじゃないとだめ?
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		
		int m = sc.nextInt();
		String VV = "";
		
		if(m<100) VV = "00";		//1
		else if(m<=5000){			//2
			VV = String.valueOf(m/100);
			if(length(VV) < 2){
				VV = "0" + VV;
			}
		}
		
		System.out.println(VV);
	}
}

Submission Info

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

Compile Error

./Main.java:14: error: cannot find symbol
			if(length(VV) < 2){
			   ^
  symbol:   method length(String)
  location: class Main
1 error