結果

問題 No.485 方程式のお勉強
ユーザー gu_21816943
提出日時 2017-06-26 00:53:12
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 379 bytes
コンパイル時間 2,201 ms
コンパイル使用メモリ 75,140 KB
実行使用メモリ 54,376 KB
最終ジャッジ日時 2024-10-04 05:48:08
合計ジャッジ時間 4,634 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3 WA * 1
other AC * 6 WA * 7
権限があれば一括ダウンロードができます

ソースコード

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