Submission #213551

#TimeUsernameProblemLanguageResultExecution timeMemory
213551berryzed0 = not cute / 1 = cute (kriii1_0)Java
0 / 1
90 ms12280 KiB
import java.util.Scanner; 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!"); } }
#Verdict Execution timeMemoryGrader output
Fetching results...