結果

問題 No.485 方程式のお勉強
ユーザー gu_21816943gu_21816943
提出日時 2017-06-26 00:53:12
言語 Java19
(openjdk 21)
結果
WA  
実行時間 -
コード長 379 bytes
コンパイル時間 4,298 ms
コンパイル使用メモリ 72,048 KB
実行使用メモリ 56,344 KB
最終ジャッジ日時 2023-07-27 11:35:23
合計ジャッジ時間 5,604 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 123 ms
55,948 KB
testcase_02 AC 125 ms
56,016 KB
testcase_03 WA -
testcase_04 AC 123 ms
55,892 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 123 ms
55,608 KB
testcase_08 WA -
testcase_09 AC 123 ms
56,024 KB
testcase_10 AC 122 ms
55,804 KB
testcase_11 AC 125 ms
55,612 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 125 ms
55,768 KB
testcase_15 AC 124 ms
55,684 KB
testcase_16 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String[] str=sc.nextLine().split(" ");
		sc.close();
		int[] num=new int[2];
		num[0]=Integer.parseInt(str[0]);
		num[1]=Integer.parseInt(str[1]);

		if(num[1]%num[0]==0){
			System.out.println(num[1]/num[0]);
		}else{
			System.out.println("No");
		}
	}
}
0