Submission #169340
Source Code Expand
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package shobonara; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; /** * * @author Ryota */ public class Album { /** * @param args the command line arguments */ public static void main(String[] args) throws IOException { // TODO code application logic here BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String str = reader.readLine(); String [] strarray = str.split(" "); System.out.println(Integer.parseInt(strarray[1])-Integer.parseInt(strarray[0])+1); } }
Submission Info
Submission Time | |
---|---|
Task | A - アルバム |
User | shobonara |
Language | Java (OpenJDK 1.7.0) |
Score | 0 |
Code Size | 845 Byte |
Status | CE |
Compile Error
./Main.java:17: error: class Album is public, should be declared in a file named Album.java public class Album { ^ 1 error