Submission #155938


Source Code Expand

package q1;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = null;
		try {
			br = new BufferedReader(new InputStreamReader(System.in));
			String line = br.readLine();
			//for (String line = br.readLine(); line != null; line = br.readLine()) {
				if (Integer.parseInt(line) % 3 == 0) {
					System.out.println("YES");
				} else {
					System.out.println("NO");
				}
			//}
		} finally {
			if (br != null) {
				try {
					br.close();
				} catch (IOException e) {
				}
			}
		}
	}
}

Submission Info

Submission Time
Task A - 世界のFizzBuzz
User sugara99
Language Java (OpenJDK 1.7.0)
Score 0
Code Size 666 Byte
Status RE
Exec Time 417 ms
Memory 20284 KB

Judge Result

Set Name All
Score / Max Score 0 / 100
Status
RE × 9
Set Name Test Cases
All test_1.txt, test_2.txt, test_3.txt, test_4.txt, test_5.txt, test_6.txt, test_7.txt, test_8.txt, test_9.txt
Case Name Status Exec Time Memory
sample_01.txt RE 417 ms 20272 KB
sample_02.txt RE 396 ms 20272 KB
sample_03.txt RE 396 ms 20256 KB
test_1.txt RE 401 ms 20144 KB
test_2.txt RE 399 ms 20284 KB
test_3.txt RE 399 ms 20140 KB
test_4.txt RE 382 ms 20268 KB
test_5.txt RE 401 ms 20268 KB
test_6.txt RE 396 ms 20148 KB
test_7.txt RE 391 ms 20140 KB
test_8.txt RE 411 ms 20152 KB
test_9.txt RE 394 ms 20140 KB