Submission #1606657
Source Code Expand
import java.util.*; import java.io.*; public class Main { public static void main(String[] args) throws IOException { // TODO Auto-generated method stub Scanner in = new Scanner(System.in)); 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(num + " is not a multiple of 4, and thus NO should be printed."); } } }
Submission Info
Submission Time | |
---|---|
Task | A - RGB Cards |
User | vjudge3 |
Language | Java8 (OpenJDK 1.8.0) |
Score | 0 |
Code Size | 641 Byte |
Status | CE |
Compile Error
./Main.java:8: error: ';' expected Scanner in = new Scanner(System.in)); ^ 1 error