Submission #1606712
Source Code Expand
import java.util.*; import java.io.*; public class RGB { public static void main(String[] args) throws IOException { // TODO Auto-generated method stub Scanner in = new Scanner(new File("RGB")); int[]arr = new int[3]; String empty = ""; for(int i = 0; i < arr.length; i++) { arr[i] = in.nextInt(); empty += arr[i]; } int num = Integer.parseInt(empty); if(num % 4 == 0) { System.out.println("YES"); //System.out.println(num + " is a multiple of 4, and thus YES should be printed."); } else { System.out.println("NO"); //System.out.println(num + " is not a multiple of 4, and thus NO should be printed."); } } }
Submission Info
Submission Time | |
---|---|
Task | A - RGB Cards |
User | vjudge5 |
Language | Java8 (OpenJDK 1.8.0) |
Score | 0 |
Code Size | 697 Byte |
Status | CE |
Compile Error
./Main.java:3: error: class RGB is public, should be declared in a file named RGB.java public class RGB { ^ 1 error