結果

問題 No.485 方程式のお勉強
ユーザー shinwisteria
提出日時 2017-03-18 16:17:46
言語 Java
(openjdk 23)
結果
AC  
実行時間 130 ms / 2,000 ms
コード長 279 bytes
コンパイル時間 3,344 ms
コンパイル使用メモリ 74,552 KB
実行使用メモリ 41,412 KB
最終ジャッジ日時 2024-10-04 04:19:18
合計ジャッジ時間 6,177 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Houteishiki {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int a = s.nextInt();
		int b = s.nextInt();
		
		if(b % a == 0){
			System.out.println(b/a);
		}else{
			System.out.println("NO");
		}

	}

}
0