답안 #213551

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
213551 2020-03-26T05:52:17 Z berryzed 0 = not cute / 1 = cute (kriii1_0) Java 11
0 / 1
90 ms 12280 KB
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!");
	}
}
# 결과 실행 시간 메모리 Grader output
1 Runtime error 90 ms 12280 KB Execution failed because the return code was nonzero
2 Halted 0 ms 0 KB -