結果

問題 No.485 方程式のお勉強
ユーザー yun_appyun_app
提出日時 2017-03-13 18:27:00
言語 Java21
(openjdk 21)
結果
AC  
実行時間 55 ms / 2,000 ms
コード長 621 bytes
コンパイル時間 2,544 ms
コンパイル使用メモリ 74,776 KB
実行使用メモリ 50,404 KB
最終ジャッジ日時 2024-04-14 23:15:03
合計ジャッジ時間 3,687 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 53 ms
49,956 KB
testcase_01 AC 53 ms
50,216 KB
testcase_02 AC 53 ms
50,228 KB
testcase_03 AC 53 ms
49,988 KB
testcase_04 AC 53 ms
50,312 KB
testcase_05 AC 53 ms
50,128 KB
testcase_06 AC 53 ms
49,920 KB
testcase_07 AC 53 ms
50,280 KB
testcase_08 AC 52 ms
50,160 KB
testcase_09 AC 53 ms
50,404 KB
testcase_10 AC 53 ms
50,280 KB
testcase_11 AC 53 ms
50,228 KB
testcase_12 AC 53 ms
50,304 KB
testcase_13 AC 54 ms
49,824 KB
testcase_14 AC 53 ms
50,316 KB
testcase_15 AC 52 ms
50,244 KB
testcase_16 AC 55 ms
50,048 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Main
{
    
    
    public static void main (String[] args) throws java.lang.Exception
    {
        // your code goes here
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] lines = br.readLine().split(" ");
        int A = Integer.parseInt(lines[0]);
        int B = Integer.parseInt(lines[1]);
        System.out.println(((double)B/A) == (B/A)?Integer.toString(B/A):"NO");
    }
}
0