結果

問題 No.485 方程式のお勉強
ユーザー YoiTakaYoiTaka
提出日時 2017-03-03 21:47:39
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 425 bytes
コンパイル時間 2,119 ms
コンパイル使用メモリ 104,108 KB
実行使用メモリ 26,212 KB
最終ジャッジ日時 2023-09-04 05:54:01
合計ジャッジ時間 4,010 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 61 ms
22,072 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 60 ms
22,028 KB
testcase_04 WA -
testcase_05 AC 61 ms
22,060 KB
testcase_06 AC 62 ms
22,040 KB
testcase_07 WA -
testcase_08 AC 59 ms
24,008 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 60 ms
24,020 KB
testcase_13 AC 60 ms
19,824 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 60 ms
23,920 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((int)x);
        }
        System.Console.WriteLine("NO");
    }
}
0