QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#563189#8788. Page on vdome.comHuppupCompile Error//Java11301b2024-09-14 04:21:152024-09-14 04:21:15

Judging History

你现在查看的是最新测评结果

  • [2024-09-14 04:21:15]
  • 评测
  • [2024-09-14 04:21:15]
  • 提交

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