結果

問題 No.485 方程式のお勉強
ユーザー yamax3232yamax3232
提出日時 2018-03-15 08:13:35
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 314 bytes
コンパイル時間 2,412 ms
コンパイル使用メモリ 71,172 KB
実行使用メモリ 58,004 KB
最終ジャッジ日時 2023-08-21 12:03:16
合計ジャッジ時間 6,086 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
56,268 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 123 ms
55,932 KB
testcase_04 WA -
testcase_05 AC 122 ms
55,812 KB
testcase_06 AC 122 ms
55,920 KB
testcase_07 WA -
testcase_08 AC 122 ms
55,900 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 121 ms
56,212 KB
testcase_13 AC 121 ms
55,680 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 122 ms
55,936 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