結果

問題 No.485 方程式のお勉強
ユーザー CroweaCrowea
提出日時 2019-01-24 12:46:25
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 57 ms / 2,000 ms
コード長 342 bytes
コンパイル時間 771 ms
コンパイル使用メモリ 60,940 KB
実行使用メモリ 22,896 KB
最終ジャッジ日時 2023-10-14 09:37:38
合計ジャッジ時間 2,667 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 56 ms
22,812 KB
testcase_01 AC 54 ms
18,764 KB
testcase_02 AC 56 ms
20,660 KB
testcase_03 AC 55 ms
20,644 KB
testcase_04 AC 56 ms
20,816 KB
testcase_05 AC 55 ms
22,896 KB
testcase_06 AC 55 ms
20,888 KB
testcase_07 AC 55 ms
20,792 KB
testcase_08 AC 55 ms
22,812 KB
testcase_09 AC 56 ms
20,808 KB
testcase_10 AC 57 ms
20,816 KB
testcase_11 AC 55 ms
20,716 KB
testcase_12 AC 54 ms
20,792 KB
testcase_13 AC 55 ms
20,772 KB
testcase_14 AC 54 ms
20,856 KB
testcase_15 AC 55 ms
20,904 KB
testcase_16 AC 54 ms
20,712 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

using System;

class Program
{
    static void Main(string[] args)
    {
        var input = Console.ReadLine().Split(' ');
        var div = int.Parse(input[0]);
        var result = int.Parse(input[1]);

        var x = result % div;
        string msg = (x == 0) ? (result / div).ToString() : "NO";
        Console.WriteLine(msg);
    }
}
0