Submission #1754927


Source Code Expand

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String s = br.readLine();
		String[] array = s.split(" ");

		int r = Integer.parseInt(array[0]);
		int g = Integer.parseInt(array[1]);
		int b = Integer.parseInt(array[2]);

		int x = (100 * r) + (10 * g) + b;

		if (x % 4 == 0) {
			System.out.println("YES");
		} else {
			System.out.println("NO");
		}
	}
}

Submission Info

Submission Time
Task A - RGB Cards
User unirita145
Language Java8 (OpenJDK 1.8.0)
Score 100
Code Size 560 Byte
Status AC
Exec Time 70 ms
Memory 21204 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 67 ms 19156 KB
in2.txt AC 70 ms 18900 KB
in3.txt AC 66 ms 19284 KB
in4.txt AC 67 ms 15700 KB
in5.txt AC 68 ms 21076 KB
s1.txt AC 70 ms 17876 KB
s2.txt AC 66 ms 21204 KB