Back to Problem

Submission for Watermelon

Status:Wrong Answer
Score:0.67 / 1.0 (67%)
Language:java
Submitted:11/4/2026, 8:10:35 PM
Visibility: Public
Execution:374 ms max

Test Cases

2 / 3 Passed • Score: 0.67

Click to expand detailed testcase breakdown

Source Code

JAVA19 lines
1 
2import java.util.Scanner;
3 
4public class Main {
5 public static void main(String[] args) {
6 Scanner sc = new Scanner(System.in);
7 
8 int w = sc.nextInt();
9 
10 if (w > 2 && w % 2 == 0 && w != 4 && w != 6 && w != 10) {
11 System.out.println("YES");
12 } else {
13 System.out.println("NO");
14 }
15 
16 sc.close();
17 }
18}
19