From 3b2003b730e8fed6c794b0160f5b3b1f0b8af311 Mon Sep 17 00:00:00 2001 From: d3ku45 <53232960+d3ku45@users.noreply.github.com> Date: Fri, 25 Oct 2019 12:30:23 +0530 Subject: [PATCH] Update Watermelon.java --- codeforces/Watermelon.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/codeforces/Watermelon.java b/codeforces/Watermelon.java index 0a51c29..3e5f787 100644 --- a/codeforces/Watermelon.java +++ b/codeforces/Watermelon.java @@ -6,8 +6,8 @@ public class Watermelon{ public static void main(String[] args) { - Scanner sc = new Scanner(System.in); - int n = sc.nextInt(); + Scanner s = new Scanner(System.in); + int n = s.nextInt(); if(n>2 && (n%2==0)){ System.out.println("YES"); } @@ -20,7 +20,7 @@ else if (n<=2 || (n%2!=0)){ System.out.println("NO"); } - sc.close(); + s.close(); } -} \ No newline at end of file +}