結果

問題 No.485 方程式のお勉強
ユーザー kano_townkano_town
提出日時 2017-02-24 22:24:49
言語 Java21
(openjdk 21)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 364 bytes
コンパイル時間 3,432 ms
コンパイル使用メモリ 71,908 KB
実行使用メモリ 56,316 KB
最終ジャッジ日時 2023-09-02 12:39:46
合計ジャッジ時間 6,597 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 126 ms
56,036 KB
testcase_01 AC 123 ms
55,800 KB
testcase_02 AC 125 ms
55,648 KB
testcase_03 AC 127 ms
55,656 KB
testcase_04 AC 125 ms
54,020 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 127 ms
55,700 KB
testcase_08 AC 125 ms
55,960 KB
testcase_09 AC 125 ms
55,960 KB
testcase_10 AC 124 ms
55,772 KB
testcase_11 AC 124 ms
55,720 KB
testcase_12 AC 123 ms
56,316 KB
testcase_13 AC 126 ms
55,948 KB
testcase_14 AC 125 ms
55,652 KB
testcase_15 AC 123 ms
55,764 KB
testcase_16 AC 123 ms
55,596 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

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