結果

問題 No.485 方程式のお勉強
ユーザー Mcpu3Mcpu3
提出日時 2018-06-22 02:31:57
言語 Java21
(openjdk 21)
結果
AC  
実行時間 124 ms / 2,000 ms
コード長 257 bytes
コンパイル時間 2,056 ms
コンパイル使用メモリ 71,524 KB
実行使用メモリ 56,276 KB
最終ジャッジ日時 2023-09-13 07:50:15
合計ジャッジ時間 4,831 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
55,728 KB
testcase_01 AC 120 ms
55,684 KB
testcase_02 AC 120 ms
55,576 KB
testcase_03 AC 119 ms
56,184 KB
testcase_04 AC 120 ms
55,852 KB
testcase_05 AC 121 ms
55,996 KB
testcase_06 AC 121 ms
56,028 KB
testcase_07 AC 119 ms
55,972 KB
testcase_08 AC 118 ms
55,880 KB
testcase_09 AC 119 ms
56,000 KB
testcase_10 AC 120 ms
56,036 KB
testcase_11 AC 120 ms
56,276 KB
testcase_12 AC 124 ms
55,920 KB
testcase_13 AC 118 ms
56,184 KB
testcase_14 AC 120 ms
56,196 KB
testcase_15 AC 119 ms
56,092 KB
testcase_16 AC 119 ms
55,580 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

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