Submission #1606640


Source Code Expand

import java.util.Scanner;

public class Main{
   public static void main(String[] args){
      Scanner reader = new Scanner(System.in);
      int number = 0;
      
      for(int i = 2; i >= 0; i--){
            number += reader.nextInt()*Math.pow(10, i);
      }
      
      double det = number/4.0;
      
      if((det%1.0) > 0){
         System.out.println(" NO");
      } else {
         System.out.println("YES");
      }
   }
}

Submission Info

Submission Time
Task A - RGB Cards
User vjudge2
Language Java8 (OpenJDK 1.8.0)
Score 100
Code Size 435 Byte
Status AC
Exec Time 100 ms
Memory 21844 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 2
AC × 7
Set Name Test Cases
Sample s1.txt, s2.txt
All in1.txt, in2.txt, in3.txt, in4.txt, in5.txt, s1.txt, s2.txt
Case Name Status Exec Time Memory
in1.txt AC 100 ms 20820 KB
in2.txt AC 92 ms 20052 KB
in3.txt AC 96 ms 21588 KB
in4.txt AC 90 ms 20564 KB
in5.txt AC 92 ms 21844 KB
s1.txt AC 94 ms 18644 KB
s2.txt AC 91 ms 21716 KB