結果

問題 No.485 方程式のお勉強
ユーザー gu_21816943gu_21816943
提出日時 2017-06-26 00:53:12
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 379 bytes
コンパイル時間 2,188 ms
コンパイル使用メモリ 74,864 KB
実行使用メモリ 54,464 KB
最終ジャッジ日時 2024-04-14 23:51:44
合計ジャッジ時間 5,025 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 127 ms
54,080 KB
testcase_02 AC 121 ms
54,112 KB
testcase_03 WA -
testcase_04 AC 117 ms
54,192 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 126 ms
54,076 KB
testcase_08 WA -
testcase_09 AC 116 ms
54,172 KB
testcase_10 AC 125 ms
53,868 KB
testcase_11 AC 118 ms
53,888 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 127 ms
54,080 KB
testcase_15 AC 126 ms
53,980 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