結果

問題 No.1119 Division 3
ユーザー ApassApass
提出日時 2020-07-22 21:52:59
言語 Java21
(openjdk 21)
結果
AC  
実行時間 44 ms / 1,000 ms
コード長 599 bytes
コンパイル時間 4,510 ms
コンパイル使用メモリ 72,276 KB
実行使用メモリ 49,724 KB
最終ジャッジ日時 2023-09-04 18:00:32
合計ジャッジ時間 6,289 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 44 ms
49,384 KB
testcase_01 AC 44 ms
49,360 KB
testcase_02 AC 43 ms
49,560 KB
testcase_03 AC 44 ms
49,232 KB
testcase_04 AC 44 ms
49,424 KB
testcase_05 AC 44 ms
49,456 KB
testcase_06 AC 44 ms
49,300 KB
testcase_07 AC 44 ms
49,616 KB
testcase_08 AC 44 ms
49,320 KB
testcase_09 AC 44 ms
49,296 KB
testcase_10 AC 44 ms
49,724 KB
testcase_11 AC 44 ms
49,220 KB
testcase_12 AC 44 ms
49,348 KB
testcase_13 AC 44 ms
49,352 KB
testcase_14 AC 44 ms
49,456 KB
testcase_15 AC 44 ms
49,388 KB
testcase_16 AC 44 ms
49,332 KB
testcase_17 AC 44 ms
49,388 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;
import java.util.*;

public class Division3 {
    private static final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    private static StringTokenizer st;

    private static int readInt() throws IOException {
        while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine());
        return Integer.parseInt(st.nextToken());
    }

    public static void main(String[] args) throws IOException {
        System.out.println(readInt() % 3 == 0 || readInt() % 3 == 0 || readInt() % 3 == 0 ?
                "Yes" : "No");
    }
}
0