結果

問題 No.1119 Division 3
ユーザー xRS43BofaUEZ5gcxRS43BofaUEZ5gc
提出日時 2021-03-04 09:36:59
言語 Java21
(openjdk 21)
結果
AC  
実行時間 141 ms / 1,000 ms
コード長 373 bytes
コンパイル時間 3,594 ms
コンパイル使用メモリ 74,316 KB
実行使用メモリ 54,432 KB
最終ジャッジ日時 2024-04-15 03:16:55
合計ジャッジ時間 6,856 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 141 ms
54,256 KB
testcase_01 AC 140 ms
53,968 KB
testcase_02 AC 138 ms
54,176 KB
testcase_03 AC 140 ms
54,244 KB
testcase_04 AC 138 ms
54,012 KB
testcase_05 AC 139 ms
54,432 KB
testcase_06 AC 138 ms
54,184 KB
testcase_07 AC 140 ms
54,324 KB
testcase_08 AC 137 ms
54,080 KB
testcase_09 AC 137 ms
53,992 KB
testcase_10 AC 135 ms
54,244 KB
testcase_11 AC 136 ms
54,092 KB
testcase_12 AC 138 ms
54,036 KB
testcase_13 AC 137 ms
53,824 KB
testcase_14 AC 137 ms
54,376 KB
testcase_15 AC 136 ms
53,888 KB
testcase_16 AC 138 ms
54,380 KB
testcase_17 AC 137 ms
54,056 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class HelloWorld {

	    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();

	    	int a = (x % 3) * (y % 3) * (z % 3);

	    	System.out.println(a % 3== 0 ? "Yes" : "No");

	    	}



}
0