結果

問題 No.485 方程式のお勉強
ユーザー yun_appyun_app
提出日時 2017-03-13 18:27:00
言語 Java19
(openjdk 21)
結果
AC  
実行時間 47 ms / 2,000 ms
コード長 621 bytes
コンパイル時間 2,070 ms
コンパイル使用メモリ 72,256 KB
実行使用メモリ 49,752 KB
最終ジャッジ日時 2023-07-27 10:48:22
合計ジャッジ時間 3,741 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 44 ms
49,664 KB
testcase_01 AC 45 ms
49,320 KB
testcase_02 AC 44 ms
49,264 KB
testcase_03 AC 44 ms
49,244 KB
testcase_04 AC 42 ms
49,748 KB
testcase_05 AC 43 ms
49,392 KB
testcase_06 AC 43 ms
49,120 KB
testcase_07 AC 44 ms
49,456 KB
testcase_08 AC 44 ms
49,364 KB
testcase_09 AC 44 ms
49,376 KB
testcase_10 AC 44 ms
49,752 KB
testcase_11 AC 43 ms
49,752 KB
testcase_12 AC 44 ms
47,108 KB
testcase_13 AC 44 ms
49,712 KB
testcase_14 AC 44 ms
49,484 KB
testcase_15 AC 45 ms
49,192 KB
testcase_16 AC 47 ms
49,612 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