結果

問題 No.485 方程式のお勉強
ユーザー ototonariototonari
提出日時 2017-03-20 00:14:16
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 61 ms / 2,000 ms
コード長 482 bytes
コンパイル時間 2,020 ms
コンパイル使用メモリ 102,312 KB
実行使用メモリ 22,792 KB
最終ジャッジ日時 2023-07-27 10:49:03
合計ジャッジ時間 4,012 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 59 ms
20,824 KB
testcase_01 AC 59 ms
22,648 KB
testcase_02 AC 61 ms
20,652 KB
testcase_03 AC 59 ms
22,792 KB
testcase_04 AC 60 ms
20,780 KB
testcase_05 AC 59 ms
20,660 KB
testcase_06 AC 59 ms
22,684 KB
testcase_07 AC 59 ms
20,728 KB
testcase_08 AC 58 ms
20,732 KB
testcase_09 AC 60 ms
22,708 KB
testcase_10 AC 60 ms
20,736 KB
testcase_11 AC 59 ms
20,704 KB
testcase_12 AC 59 ms
20,676 KB
testcase_13 AC 59 ms
22,692 KB
testcase_14 AC 59 ms
20,616 KB
testcase_15 AC 58 ms
20,844 KB
testcase_16 AC 58 ms
22,728 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

namespace yukicoder
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] s = Console.ReadLine().Split(' ');
            int A = int.Parse(s[0]);
            int B = int.Parse(s[1]);
            if (B % A == 0)
            {
                Console.WriteLine("{0}", B / A);
            }
            else
            {
                Console.WriteLine("{0}", "NO");
            }
        }
    }
}
0