結果

問題 No.485 方程式のお勉強
ユーザー akichiakichi
提出日時 2017-08-25 00:14:15
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 29 ms / 2,000 ms
コード長 268 bytes
コンパイル時間 781 ms
コンパイル使用メモリ 111,452 KB
実行使用メモリ 27,124 KB
最終ジャッジ日時 2024-04-23 14:15:41
合計ジャッジ時間 1,984 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
24,972 KB
testcase_01 AC 28 ms
25,384 KB
testcase_02 AC 29 ms
24,880 KB
testcase_03 AC 28 ms
24,960 KB
testcase_04 AC 28 ms
25,008 KB
testcase_05 AC 28 ms
25,080 KB
testcase_06 AC 29 ms
25,004 KB
testcase_07 AC 28 ms
27,040 KB
testcase_08 AC 28 ms
25,252 KB
testcase_09 AC 28 ms
25,128 KB
testcase_10 AC 28 ms
27,124 KB
testcase_11 AC 29 ms
27,040 KB
testcase_12 AC 28 ms
25,004 KB
testcase_13 AC 28 ms
23,220 KB
testcase_14 AC 28 ms
24,740 KB
testcase_15 AC 27 ms
25,136 KB
testcase_16 AC 28 ms
25,256 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;
class Program {
    static void Main() {
        int[] ab = Console.ReadLine().Split().Select(int.Parse).ToArray();
        int a = ab[0], b = ab[1];
        Console.WriteLine(a != 0 && b % a == 0 ? (b / a).ToString() : "NO");
    }
}
0