結果

問題 No.485 方程式のお勉強
ユーザー Vir_MeL0Vir_MeL0
提出日時 2017-03-22 01:31:32
言語 Java21
(openjdk 21)
結果
AC  
実行時間 53 ms / 2,000 ms
コード長 356 bytes
コンパイル時間 1,956 ms
コンパイル使用メモリ 74,760 KB
実行使用メモリ 37,312 KB
最終ジャッジ日時 2024-04-14 23:16:17
合計ジャッジ時間 3,551 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 52 ms
37,216 KB
testcase_01 AC 52 ms
37,132 KB
testcase_02 AC 53 ms
37,016 KB
testcase_03 AC 52 ms
37,228 KB
testcase_04 AC 53 ms
37,312 KB
testcase_05 AC 53 ms
36,692 KB
testcase_06 AC 53 ms
37,248 KB
testcase_07 AC 53 ms
36,876 KB
testcase_08 AC 51 ms
37,248 KB
testcase_09 AC 52 ms
36,816 KB
testcase_10 AC 52 ms
37,032 KB
testcase_11 AC 52 ms
36,816 KB
testcase_12 AC 51 ms
37,248 KB
testcase_13 AC 53 ms
37,096 KB
testcase_14 AC 53 ms
37,032 KB
testcase_15 AC 53 ms
37,004 KB
testcase_16 AC 53 ms
37,200 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;
public class Main{
public static void main(String[] args)throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String str=br.readLine();
String[] num=str.split(" ");
int a=Integer.parseInt(num[0]);
int b=Integer.parseInt(num[1]);
if(b%a!=0)
System.out.println("NO");
else
System.out.println(b/a);
}
}
0