Submission #213550

#TimeUsernameProblemLanguageResultExecution timeMemory
213550berryzed0 = not cute / 1 = cute (kriii1_0)Java
Compilation error
0 ms0 KiB
import java.util.Scanner; public class t0 { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int N = scanner.nextInt(); int cute = 0; int notCute = 0; for (int i = 0; i < N; i++) { int vote = scanner.nextInt(); if (vote == 0) notCute++; else cute++; } if (cute > notCute) System.out.println("Junhee is cute!"); else System.out.println("Junhee is not cute!"); } }

Compilation message (stderr)

0.java:3: error: class t0 is public, should be declared in a file named t0.java
public class t0 {
       ^
1 error