結果

問題 No.485 方程式のお勉強
ユーザー curryudon08curryudon08
提出日時 2020-07-21 18:09:05
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 55 ms / 2,000 ms
コード長 392 bytes
コンパイル時間 3,244 ms
コンパイル使用メモリ 100,336 KB
実行使用メモリ 22,892 KB
最終ジャッジ日時 2023-08-28 19:50:10
合計ジャッジ時間 5,011 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 53 ms
20,740 KB
testcase_01 AC 53 ms
20,704 KB
testcase_02 AC 54 ms
20,796 KB
testcase_03 AC 53 ms
22,684 KB
testcase_04 AC 54 ms
20,616 KB
testcase_05 AC 53 ms
22,672 KB
testcase_06 AC 53 ms
20,708 KB
testcase_07 AC 55 ms
22,832 KB
testcase_08 AC 52 ms
20,572 KB
testcase_09 AC 54 ms
22,892 KB
testcase_10 AC 54 ms
20,704 KB
testcase_11 AC 53 ms
20,724 KB
testcase_12 AC 52 ms
20,720 KB
testcase_13 AC 52 ms
22,752 KB
testcase_14 AC 54 ms
22,644 KB
testcase_15 AC 54 ms
18,732 KB
testcase_16 AC 52 ms
22,752 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 _0485
{
    class Program
    {
        static void Main(string[] args)
        {
            var _ = Console.ReadLine().Split();
            var a = int.Parse(_[0]);
            var b = int.Parse(_[1]);

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