結果

問題 No.485 方程式のお勉強
ユーザー shinwisteriashinwisteria
提出日時 2017-03-18 16:17:46
言語 Java21
(openjdk 21)
結果
AC  
実行時間 139 ms / 2,000 ms
コード長 279 bytes
コンパイル時間 3,364 ms
コンパイル使用メモリ 74,212 KB
実行使用メモリ 41,756 KB
最終ジャッジ日時 2024-04-14 23:15:26
合計ジャッジ時間 6,301 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 132 ms
41,232 KB
testcase_01 AC 134 ms
41,328 KB
testcase_02 AC 117 ms
40,184 KB
testcase_03 AC 130 ms
41,536 KB
testcase_04 AC 133 ms
41,480 KB
testcase_05 AC 129 ms
41,320 KB
testcase_06 AC 132 ms
41,756 KB
testcase_07 AC 135 ms
41,548 KB
testcase_08 AC 131 ms
41,500 KB
testcase_09 AC 139 ms
41,172 KB
testcase_10 AC 134 ms
41,148 KB
testcase_11 AC 133 ms
41,544 KB
testcase_12 AC 135 ms
41,504 KB
testcase_13 AC 130 ms
41,400 KB
testcase_14 AC 134 ms
41,552 KB
testcase_15 AC 116 ms
39,980 KB
testcase_16 AC 129 ms
41,456 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Houteishiki {

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

	}

}
0