結果

問題 No.485 方程式のお勉強
ユーザー cande398cande398
提出日時 2017-10-08 00:07:32
言語 Java21
(openjdk 21)
結果
AC  
実行時間 120 ms / 2,000 ms
コード長 255 bytes
コンパイル時間 1,944 ms
コンパイル使用メモリ 71,440 KB
実行使用メモリ 56,336 KB
最終ジャッジ日時 2023-08-10 19:36:53
合計ジャッジ時間 5,277 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 117 ms
55,936 KB
testcase_01 AC 119 ms
55,636 KB
testcase_02 AC 117 ms
55,724 KB
testcase_03 AC 116 ms
55,952 KB
testcase_04 AC 118 ms
55,984 KB
testcase_05 AC 119 ms
55,952 KB
testcase_06 AC 115 ms
56,308 KB
testcase_07 AC 120 ms
56,180 KB
testcase_08 AC 118 ms
55,672 KB
testcase_09 AC 116 ms
56,240 KB
testcase_10 AC 115 ms
56,056 KB
testcase_11 AC 117 ms
56,260 KB
testcase_12 AC 114 ms
56,168 KB
testcase_13 AC 116 ms
55,636 KB
testcase_14 AC 118 ms
54,264 KB
testcase_15 AC 118 ms
56,072 KB
testcase_16 AC 117 ms
56,336 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