結果

問題 No.485 方程式のお勉強
ユーザー sakeharamisakeharami
提出日時 2017-03-08 18:13:23
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 25 ms / 2,000 ms
コード長 380 bytes
コンパイル時間 908 ms
コンパイル使用メモリ 111,732 KB
実行使用メモリ 26,128 KB
最終ジャッジ日時 2024-04-14 23:13:29
合計ジャッジ時間 2,197 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 24 ms
23,776 KB
testcase_01 AC 24 ms
23,692 KB
testcase_02 AC 25 ms
24,028 KB
testcase_03 AC 24 ms
23,652 KB
testcase_04 AC 25 ms
23,980 KB
testcase_05 AC 24 ms
24,092 KB
testcase_06 AC 24 ms
24,032 KB
testcase_07 AC 25 ms
25,940 KB
testcase_08 AC 24 ms
23,776 KB
testcase_09 AC 25 ms
26,128 KB
testcase_10 AC 24 ms
21,940 KB
testcase_11 AC 24 ms
23,828 KB
testcase_12 AC 25 ms
24,032 KB
testcase_13 AC 25 ms
26,124 KB
testcase_14 AC 25 ms
25,996 KB
testcase_15 AC 25 ms
24,244 KB
testcase_16 AC 25 ms
23,984 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

class Program
{
    static void Main()
    {
        string[] input = Console.ReadLine().Split(' ');
        int a = int.Parse(input[0]);
        int b = int.Parse(input[1]);

        var result = b % a;

        if (result == 0)
        {
            Console.WriteLine(b / a);
        }
        else
        {
            Console.WriteLine("NO");
        }
    }
}
0