結果

問題 No.1119 Division 3
ユーザー ApassApass
提出日時 2020-07-22 21:52:59
言語 Java
(openjdk 23)
結果
AC  
実行時間 49 ms / 1,000 ms
コード長 599 bytes
コンパイル時間 4,185 ms
コンパイル使用メモリ 74,468 KB
実行使用メモリ 50,708 KB
最終ジャッジ日時 2024-06-22 15:56:01
合計ジャッジ時間 5,700 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

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