Compile Error
Main.java:3: error: class SeriousOJChecker is public, should be declared in a file named SeriousOJChecker.java public class SeriousOJChecker { ^ 1 error
Code
import java.util.Scanner;
public class SeriousOJChecker {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int T = input.nextInt();
input.nextLine();
String target = "SeriousOJ";
for (int t = 0; t < T; t++) {
int N = input.nextInt();
input.nextLine();
String s = input.nextLine();
if (s.contains(target)) {
System.out.println("YES");
} else {
System.out.println("NO");
}
}
input.close();
}
}
Information
- Submit By
- Type
- Submission
- Problem
- P1147 SeriousOJ Challenge
- Contest
- LU IUJPC : Sylhet Division 2024 Replay Contest
- Language
- Java 8 (OpenJDK 1.8.0_422)
- Submit At
- 2024-12-10 09:21:01
- Judged At
- 2024-12-10 09:21:01
- Judged By
- Score
- 0
- Total Time
- 0ms
- Peak Memory
- 0 Bytes