結果

問題 No.485 方程式のお勉強
ユーザー Ryota EnokidoRyota Enokido
提出日時 2018-12-11 10:38:04
言語 Java21
(openjdk 21)
結果
AC  
実行時間 142 ms / 2,000 ms
コード長 361 bytes
コンパイル時間 2,568 ms
コンパイル使用メモリ 74,564 KB
実行使用メモリ 57,468 KB
最終ジャッジ日時 2023-10-19 23:21:19
合計ジャッジ時間 6,856 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 135 ms
57,372 KB
testcase_01 AC 136 ms
57,164 KB
testcase_02 AC 136 ms
57,240 KB
testcase_03 AC 135 ms
57,428 KB
testcase_04 AC 134 ms
57,284 KB
testcase_05 AC 136 ms
57,164 KB
testcase_06 AC 136 ms
55,404 KB
testcase_07 AC 137 ms
57,396 KB
testcase_08 AC 138 ms
57,192 KB
testcase_09 AC 134 ms
55,432 KB
testcase_10 AC 134 ms
57,220 KB
testcase_11 AC 134 ms
57,228 KB
testcase_12 AC 133 ms
57,196 KB
testcase_13 AC 142 ms
57,468 KB
testcase_14 AC 137 ms
57,204 KB
testcase_15 AC 137 ms
57,068 KB
testcase_16 AC 134 ms
57,208 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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