結果

問題 No.485 方程式のお勉強
ユーザー cande398cande398
提出日時 2017-10-08 00:07:32
言語 Java21
(openjdk 21)
結果
AC  
実行時間 136 ms / 2,000 ms
コード長 255 bytes
コンパイル時間 2,237 ms
コンパイル使用メモリ 74,376 KB
実行使用メモリ 54,340 KB
最終ジャッジ日時 2024-04-28 12:55:00
合計ジャッジ時間 5,467 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 132 ms
54,244 KB
testcase_01 AC 129 ms
53,796 KB
testcase_02 AC 132 ms
53,652 KB
testcase_03 AC 132 ms
53,692 KB
testcase_04 AC 136 ms
53,960 KB
testcase_05 AC 135 ms
54,128 KB
testcase_06 AC 135 ms
53,940 KB
testcase_07 AC 136 ms
53,836 KB
testcase_08 AC 132 ms
53,852 KB
testcase_09 AC 130 ms
54,028 KB
testcase_10 AC 135 ms
53,896 KB
testcase_11 AC 130 ms
53,764 KB
testcase_12 AC 131 ms
53,876 KB
testcase_13 AC 134 ms
53,876 KB
testcase_14 AC 130 ms
54,340 KB
testcase_15 AC 136 ms
54,080 KB
testcase_16 AC 133 ms
53,952 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    if(b%a==0)System.out.println(b/a);
    else System.out.println("NO");
  }
}
0