結果

問題 No.485 方程式のお勉強
ユーザー fujitafujita
提出日時 2023-05-08 14:03:49
言語 C#
(.NET 8.0.203)
結果
AC  
実行時間 40 ms / 2,000 ms
コード長 584 bytes
コンパイル時間 13,642 ms
コンパイル使用メモリ 144,300 KB
実行使用メモリ 161,800 KB
最終ジャッジ日時 2023-08-16 17:07:58
合計ジャッジ時間 15,521 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
29,808 KB
testcase_01 AC 39 ms
27,856 KB
testcase_02 AC 39 ms
28,016 KB
testcase_03 AC 39 ms
28,084 KB
testcase_04 AC 39 ms
27,960 KB
testcase_05 AC 39 ms
28,104 KB
testcase_06 AC 39 ms
30,072 KB
testcase_07 AC 39 ms
27,948 KB
testcase_08 AC 39 ms
28,092 KB
testcase_09 AC 40 ms
28,092 KB
testcase_10 AC 40 ms
27,936 KB
testcase_11 AC 40 ms
27,840 KB
testcase_12 AC 39 ms
28,064 KB
testcase_13 AC 39 ms
27,936 KB
testcase_14 AC 39 ms
27,956 KB
testcase_15 AC 39 ms
28,100 KB
testcase_16 AC 40 ms
161,800 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  Determining projects to restore...
  Restored /home/judge/data/code/main.csproj (in 109 ms).
.NET 向け Microsoft (R) Build Engine バージョン 17.0.0-preview-21470-01+cb055d28f
Copyright (C) Microsoft Corporation.All rights reserved.

  プレビュー版の .NET を使用しています。https://aka.ms/dotnet-core-preview をご覧ください
  main -> /home/judge/data/code/bin/Release/net6.0/main.dll
  main -> /home/judge/data/code/bin/Release/net6.0/publish/

ソースコード

diff #

using System.Collections.Generic;
using System;
using System.Linq;
using System.Drawing;
using System.Runtime.Intrinsics.X86;

namespace yukicoder
{
    class Program
    {

        static void Main(string[] args)
        {


            var num = Console.ReadLine();
            var a = num.Split(" ");

            var A = int.Parse(a[0]);
            var B = int.Parse(a[1]);

            if(B % A == 0)
            {
                Console.WriteLine(B / A);
            }
            else
            {
                Console.WriteLine("NO");
            }
        }
    }
   
}
0