結果

問題 No.485 方程式のお勉強
ユーザー yurarayurara
提出日時 2019-04-11 00:17:36
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 63 ms / 2,000 ms
コード長 333 bytes
コンパイル時間 3,886 ms
コンパイル使用メモリ 103,824 KB
実行使用メモリ 24,032 KB
最終ジャッジ日時 2023-09-22 19:18:29
合計ジャッジ時間 5,938 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 60 ms
21,832 KB
testcase_01 AC 61 ms
21,872 KB
testcase_02 AC 63 ms
24,032 KB
testcase_03 AC 60 ms
21,988 KB
testcase_04 AC 62 ms
23,988 KB
testcase_05 AC 60 ms
21,912 KB
testcase_06 AC 61 ms
21,868 KB
testcase_07 AC 62 ms
22,000 KB
testcase_08 AC 61 ms
21,768 KB
testcase_09 AC 62 ms
23,800 KB
testcase_10 AC 61 ms
23,880 KB
testcase_11 AC 61 ms
21,828 KB
testcase_12 AC 60 ms
21,956 KB
testcase_13 AC 60 ms
21,840 KB
testcase_14 AC 62 ms
21,840 KB
testcase_15 AC 61 ms
21,760 KB
testcase_16 AC 60 ms
21,880 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;

public class Program
{
    public static void Main()
    {
        var input = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToList();
        var output = input[1] % input[0] == 0 ? (input[1] / input[0]).ToString() : "NO";
        Console.WriteLine("{0}", output);
        return;
    }
}
0