結果

問題 No.485 方程式のお勉強
ユーザー FVRChanFVRChan
提出日時 2017-09-29 12:31:20
言語 Java21
(openjdk 21)
結果
AC  
実行時間 126 ms / 2,000 ms
コード長 264 bytes
コンパイル時間 1,837 ms
コンパイル使用メモリ 73,928 KB
実行使用メモリ 54,136 KB
最終ジャッジ日時 2024-04-27 16:17:43
合計ジャッジ時間 4,536 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 115 ms
54,116 KB
testcase_01 AC 106 ms
52,668 KB
testcase_02 AC 106 ms
52,676 KB
testcase_03 AC 120 ms
53,788 KB
testcase_04 AC 114 ms
52,768 KB
testcase_05 AC 117 ms
53,992 KB
testcase_06 AC 123 ms
54,136 KB
testcase_07 AC 120 ms
53,928 KB
testcase_08 AC 120 ms
53,940 KB
testcase_09 AC 121 ms
54,076 KB
testcase_10 AC 106 ms
52,860 KB
testcase_11 AC 121 ms
53,864 KB
testcase_12 AC 126 ms
53,876 KB
testcase_13 AC 120 ms
54,104 KB
testcase_14 AC 103 ms
52,660 KB
testcase_15 AC 109 ms
53,008 KB
testcase_16 AC 117 ms
54,044 KB
権限があれば一括ダウンロードができます

ソースコード

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("NO");
	}
}
0