結果

問題 No.485 方程式のお勉強
ユーザー YoiTakaYoiTaka
提出日時 2017-03-03 21:47:08
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 420 bytes
コンパイル時間 3,798 ms
コンパイル使用メモリ 103,004 KB
実行使用メモリ 25,924 KB
最終ジャッジ日時 2023-09-04 05:53:51
合計ジャッジ時間 5,934 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 60 ms
23,920 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 60 ms
21,932 KB
testcase_04 WA -
testcase_05 AC 62 ms
23,928 KB
testcase_06 AC 61 ms
24,016 KB
testcase_07 WA -
testcase_08 AC 59 ms
19,788 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 60 ms
23,924 KB
testcase_13 AC 60 ms
23,972 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 61 ms
22,060 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.Collections.Generic;
using System.Linq;
using System.Text;

class Program
{
    static void Main(string[] args)
    {
        int[] line = Console.ReadLine().Trim().Split(' ').Select(int.Parse).ToArray();

        double x = (double)line[1] / (double)line[0];

        if (x % 1 == 0)
        {
            System.Console.WriteLine(x);
        }
        System.Console.WriteLine("NO");
    }
}
0