結果

問題 No.485 方程式のお勉強
ユーザー yukicoderyukicoder
提出日時 2017-02-25 00:40:58
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 26 ms / 2,000 ms
コード長 372 bytes
コンパイル時間 873 ms
コンパイル使用メモリ 109,572 KB
実行使用メモリ 26,072 KB
最終ジャッジ日時 2024-04-14 22:53:18
合計ジャッジ時間 2,083 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 25 ms
23,856 KB
testcase_01 AC 26 ms
25,748 KB
testcase_02 AC 26 ms
25,756 KB
testcase_03 AC 25 ms
23,956 KB
testcase_04 AC 26 ms
24,240 KB
testcase_05 AC 25 ms
25,992 KB
testcase_06 AC 26 ms
26,072 KB
testcase_07 AC 26 ms
25,876 KB
testcase_08 AC 25 ms
23,776 KB
testcase_09 AC 25 ms
23,648 KB
testcase_10 AC 25 ms
23,900 KB
testcase_11 AC 24 ms
23,904 KB
testcase_12 AC 25 ms
23,952 KB
testcase_13 AC 24 ms
24,080 KB
testcase_14 AC 25 ms
23,832 KB
testcase_15 AC 25 ms
26,068 KB
testcase_16 AC 25 ms
23,828 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
public class Program
{
    static void Main()
    {
        string s = Console.ReadLine();
        string[] t = s.Split(' ');
        int A = int.Parse(t[0]);
        int B = int.Parse(t[1]);

        if (B % A == 0)
        {
            Console.WriteLine($"{B / A}");
        }
        else
        {
            Console.WriteLine("NO");
        }

    }
}
0