Submission #245975


Source Code Expand

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

import static java.lang.Integer.parseInt;

public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = "";

		line = br.readLine();
		if (line.indexOf('3') >= 0 || parseInt(line) % 3 == 0)
			System.out.println("YES");
		else
			System.out.println("NO");

	}
}

Submission Info

Submission Time
Task A - 世界のFizzBuzz
User sawfish
Language Java (OpenJDK 1.7.0)
Score 100
Code Size 485 Byte
Status AC
Exec Time 360 ms
Memory 20216 KB

Judge Result

Set Name All
Score / Max Score 100 / 100
Status
AC × 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 AC 359 ms 20104 KB
sample_02.txt AC 357 ms 20164 KB
sample_03.txt AC 360 ms 20216 KB
test_1.txt AC 357 ms 20140 KB
test_2.txt AC 356 ms 20144 KB
test_3.txt AC 355 ms 20124 KB
test_4.txt AC 360 ms 20180 KB
test_5.txt AC 357 ms 20060 KB
test_6.txt AC 357 ms 20112 KB
test_7.txt AC 358 ms 20204 KB
test_8.txt AC 360 ms 20140 KB
test_9.txt AC 353 ms 20156 KB