結果

問題 No.485 方程式のお勉強
ユーザー yamax3232yamax3232
提出日時 2018-03-15 08:14:17
言語 Java21
(openjdk 21)
結果
AC  
実行時間 120 ms / 2,000 ms
コード長 314 bytes
コンパイル時間 3,764 ms
コンパイル使用メモリ 70,740 KB
実行使用メモリ 56,616 KB
最終ジャッジ日時 2023-08-21 12:12:21
合計ジャッジ時間 7,234 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 118 ms
55,600 KB
testcase_01 AC 119 ms
55,672 KB
testcase_02 AC 118 ms
56,008 KB
testcase_03 AC 118 ms
56,208 KB
testcase_04 AC 119 ms
56,376 KB
testcase_05 AC 119 ms
56,044 KB
testcase_06 AC 118 ms
56,004 KB
testcase_07 AC 120 ms
55,416 KB
testcase_08 AC 117 ms
55,992 KB
testcase_09 AC 118 ms
56,236 KB
testcase_10 AC 117 ms
56,616 KB
testcase_11 AC 117 ms
56,108 KB
testcase_12 AC 120 ms
55,664 KB
testcase_13 AC 118 ms
55,472 KB
testcase_14 AC 117 ms
55,452 KB
testcase_15 AC 116 ms
55,676 KB
testcase_16 AC 117 ms
56,104 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner kb=new Scanner(System.in);
		int p=kb.nextInt();
		int q=kb.nextInt();
		if(q%p==0)
			System.out.println(q/p);
		else{
			System.out.println("NO");
		}
	}
}
0