結果

問題 No.485 方程式のお勉強
ユーザー FVRChan
提出日時 2017-09-29 12:30:35
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 262 bytes
コンパイル時間 2,124 ms
コンパイル使用メモリ 73,632 KB
実行使用メモリ 56,136 KB
最終ジャッジ日時 2024-11-15 19:52:13
合計ジャッジ時間 5,304 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3 WA * 1
other AC * 6 WA * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class Main{
	private static Scanner sc=new Scanner(System.in);
	public static void main(String args[])throws Exception{
		int a=sc.nextInt(),b=sc.nextInt();
		if(b%a==0)System.out.println(b/a);
		else System.out.println(-1);
	}
}
0