結果

問題 No.1119 Division 3
ユーザー Yosuke YamaguchiYosuke Yamaguchi
提出日時 2021-02-09 09:59:31
言語 Java21
(openjdk 21)
結果
AC  
実行時間 120 ms / 1,000 ms
コード長 491 bytes
コンパイル時間 4,672 ms
コンパイル使用メモリ 72,280 KB
実行使用メモリ 56,200 KB
最終ジャッジ日時 2023-09-20 20:22:37
合計ジャッジ時間 7,374 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
55,892 KB
testcase_01 AC 115 ms
55,548 KB
testcase_02 AC 116 ms
53,912 KB
testcase_03 AC 116 ms
55,968 KB
testcase_04 AC 118 ms
55,296 KB
testcase_05 AC 120 ms
55,760 KB
testcase_06 AC 118 ms
55,928 KB
testcase_07 AC 118 ms
55,548 KB
testcase_08 AC 116 ms
55,364 KB
testcase_09 AC 116 ms
55,740 KB
testcase_10 AC 115 ms
55,488 KB
testcase_11 AC 115 ms
55,552 KB
testcase_12 AC 114 ms
56,060 KB
testcase_13 AC 115 ms
55,696 KB
testcase_14 AC 119 ms
56,200 KB
testcase_15 AC 118 ms
55,620 KB
testcase_16 AC 120 ms
55,572 KB
testcase_17 AC 118 ms
55,492 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

// https://yukicoder.me/problems/no/1119
public class Division3_1119 {
  public static void main(String[] args) {
    // 標準入力から読み込む際に、Scan
    Scanner sc = new Scanner(System.in);
    boolean result = false;
    for (int i = 0; i < 3; i++) {
      if (Integer.parseInt(sc.next()) % 3 == 0) {
        result = true;
      }
    }
    if (result) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }

  }
}
0