結果

問題 No.1119 Division 3
ユーザー yukiyuki
提出日時 2020-08-18 09:15:12
言語 Java21
(openjdk 21)
結果
AC  
実行時間 117 ms / 1,000 ms
コード長 330 bytes
コンパイル時間 1,692 ms
コンパイル使用メモリ 74,424 KB
実行使用メモリ 54,324 KB
最終ジャッジ日時 2024-04-20 04:48:25
合計ジャッジ時間 4,303 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 100 ms
53,040 KB
testcase_01 AC 110 ms
54,228 KB
testcase_02 AC 98 ms
52,844 KB
testcase_03 AC 109 ms
53,820 KB
testcase_04 AC 111 ms
54,092 KB
testcase_05 AC 108 ms
54,096 KB
testcase_06 AC 115 ms
53,824 KB
testcase_07 AC 108 ms
53,640 KB
testcase_08 AC 102 ms
54,324 KB
testcase_09 AC 101 ms
53,036 KB
testcase_10 AC 100 ms
52,752 KB
testcase_11 AC 111 ms
54,060 KB
testcase_12 AC 111 ms
54,204 KB
testcase_13 AC 102 ms
52,764 KB
testcase_14 AC 113 ms
53,944 KB
testcase_15 AC 117 ms
54,076 KB
testcase_16 AC 111 ms
54,080 KB
testcase_17 AC 105 ms
54,088 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

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

}
0