結果

問題 No.485 方程式のお勉強
ユーザー ふっぴー
提出日時 2017-08-07 23:51:49
言語 C#(csc)
(csc 3.9.0)
結果
RE  
実行時間 -
コード長 521 bytes
コンパイル時間 4,593 ms
コンパイル使用メモリ 105,780 KB
実行使用メモリ 25,552 KB
最終ジャッジ日時 2024-10-11 22:36:20
合計ジャッジ時間 1,918 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 4
other RE * 13
権限があれば一括ダウンロードができます
コンパイルメッセージ
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;
using System.Threading.Tasks;


namespace Csnyumon1
{
    class program
    {
        static void Main()
        {
            int a, b;
            a = int.Parse(Console.ReadLine());
            b = int.Parse(Console.ReadLine());
            if (b % a == 0)
            {
                Console.Write("{0}\n", b / a);
            }
            else
            {
                Console.Write("NO\n");
            }
        }
    }
}
0