AtCoder Beginner Contest 001

Submission #260443

Source codeソースコード

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class AtCoder1b {

	public static void main (String[ ] args) {

		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));

		try{
			int m, vv;
			m =0;
			vv = 0;

			String sm = in.readLine();
			m = Integer.parseInt(sm);		




			if (m <= 100){
				System.out.println("00");
			}else if (m < 5000){
				vv = m *10 /1000;
				System.out.println(String.format("%02d", vv));
			}else if (m <= 30000){
				vv = m/1000 + 50;
				System.out.println(String.format("%d",vv));
			}else if (m <= 70000){
				vv = (m/1000 - 30)/ 5 + 80;
				System.out.println(String.format("%d",vv));
			}else if (70000 < m){
				System.out.println("89");
			}


		}catch(Exception e){
			System.out.println("入力が間違っています");

		}

	}
}

Submission

Task問題 B - 視程の通報
User nameユーザ名 rerrrr
Created time投稿日時
Language言語 Java (OpenJDK 1.7.0)
Status状態 CE
Score得点 -
Source lengthソースコード長 864 Byte
File nameファイル名
Exec time実行時間 -
Memory usageメモリ使用量 -

Compiler messageコンパイルメッセージ

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

Test case