結果

問題 No.1119 Division 3
ユーザー tentententen
提出日時 2020-08-17 23:37:11
言語 Java21
(openjdk 21)
結果
AC  
実行時間 119 ms / 1,000 ms
コード長 332 bytes
コンパイル時間 2,023 ms
コンパイル使用メモリ 74,296 KB
実行使用メモリ 54,200 KB
最終ジャッジ日時 2024-04-19 19:18:28
合計ジャッジ時間 4,708 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 115 ms
54,140 KB
testcase_01 AC 104 ms
52,948 KB
testcase_02 AC 119 ms
54,104 KB
testcase_03 AC 107 ms
52,948 KB
testcase_04 AC 110 ms
52,912 KB
testcase_05 AC 119 ms
53,920 KB
testcase_06 AC 109 ms
54,200 KB
testcase_07 AC 117 ms
54,020 KB
testcase_08 AC 116 ms
54,128 KB
testcase_09 AC 112 ms
53,760 KB
testcase_10 AC 103 ms
53,348 KB
testcase_11 AC 112 ms
53,836 KB
testcase_12 AC 103 ms
52,952 KB
testcase_13 AC 111 ms
53,996 KB
testcase_14 AC 113 ms
53,896 KB
testcase_15 AC 114 ms
54,148 KB
testcase_16 AC 102 ms
53,092 KB
testcase_17 AC 102 ms
52,836 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
	public static void main (String[] args) {
		Scanner sc = new Scanner(System.in);
		int x = sc.nextInt();
		int y = sc.nextInt();
		int z = sc.nextInt();
		if (x % 3 == 0 || y % 3 == 0 || z % 3 == 0) {
		    System.out.println("Yes");
		} else {
		    System.out.println("No");
		}
   }

}

0