結果

問題 No.1119 Division 3
ユーザー ks2mks2m
提出日時 2020-07-22 21:21:05
言語 Java19
(openjdk 21)
結果
AC  
実行時間 132 ms / 1,000 ms
コード長 359 bytes
コンパイル時間 4,839 ms
コンパイル使用メモリ 71,016 KB
実行使用メモリ 56,104 KB
最終ジャッジ日時 2023-09-04 14:17:36
合計ジャッジ時間 5,559 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 128 ms
55,568 KB
testcase_01 AC 128 ms
55,400 KB
testcase_02 AC 126 ms
55,896 KB
testcase_03 AC 128 ms
53,960 KB
testcase_04 AC 123 ms
55,564 KB
testcase_05 AC 129 ms
55,604 KB
testcase_06 AC 129 ms
55,720 KB
testcase_07 AC 128 ms
55,796 KB
testcase_08 AC 130 ms
55,528 KB
testcase_09 AC 130 ms
55,700 KB
testcase_10 AC 131 ms
56,040 KB
testcase_11 AC 132 ms
55,452 KB
testcase_12 AC 129 ms
55,504 KB
testcase_13 AC 129 ms
55,548 KB
testcase_14 AC 129 ms
55,904 KB
testcase_15 AC 128 ms
55,816 KB
testcase_16 AC 128 ms
55,864 KB
testcase_17 AC 129 ms
56,104 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int x = sc.nextInt();
		int y = sc.nextInt();
		int z = sc.nextInt();
		sc.close();

		if (x % 3 == 0 || y % 3 == 0 || z % 3 == 0) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
}
0