QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#563189 | #8788. Page on vdome.com | Huppup | Compile Error | / | / | Java11 | 301b | 2024-09-14 04:21:15 | 2024-09-14 04:21:15 |
Judging History
answer
import java.util.Scanner;
public class problem1 {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int N = scan.nextInt();
if (N < 10) {
System.out.println(N+1);
} else {
System.out.println(10);
}
}
}
Details
problem.java:4: error: class problem1 is public, should be declared in a file named problem1.java public class problem1 { ^ 1 error