結果

問題 No.485 方程式のお勉強
ユーザー swdamdrswdamdr
提出日時 2017-02-27 13:24:13
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 27 ms / 2,000 ms
コード長 415 bytes
コンパイル時間 839 ms
コンパイル使用メモリ 111,688 KB
実行使用メモリ 26,276 KB
最終ジャッジ日時 2024-04-14 23:07:50
合計ジャッジ時間 1,853 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 26 ms
25,760 KB
testcase_01 AC 25 ms
23,988 KB
testcase_02 AC 25 ms
23,972 KB
testcase_03 AC 25 ms
25,960 KB
testcase_04 AC 25 ms
23,788 KB
testcase_05 AC 26 ms
26,276 KB
testcase_06 AC 25 ms
23,916 KB
testcase_07 AC 26 ms
23,788 KB
testcase_08 AC 25 ms
23,844 KB
testcase_09 AC 27 ms
24,040 KB
testcase_10 AC 25 ms
23,916 KB
testcase_11 AC 26 ms
25,892 KB
testcase_12 AC 25 ms
25,768 KB
testcase_13 AC 25 ms
23,840 KB
testcase_14 AC 25 ms
24,104 KB
testcase_15 AC 25 ms
23,844 KB
testcase_16 AC 25 ms
21,940 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Linq;
using System.Collections.Generic;

class Program
{
    static void Main(string[] args)
    {
        string[] s = Console.ReadLine().Split();
        int a = int.Parse(s[0]);
        int b = int.Parse(s[1]);
        string ans = "NO";

        if (b % a == 0)
        {
            ans = (b / a).ToString();
        }

        Console.WriteLine(ans);
        Console.Read();
    }
}
0