結果

問題 No.388 階段 (1)
ユーザー p_nixp_nix
提出日時 2018-01-23 16:47:25
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 460 bytes
コンパイル時間 2,066 ms
コンパイル使用メモリ 104,188 KB
実行使用メモリ 25,956 KB
最終ジャッジ日時 2023-08-26 23:21:05
合計ジャッジ時間 3,943 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 66 ms
23,896 KB
testcase_02 AC 65 ms
21,772 KB
testcase_03 AC 67 ms
23,832 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 67 ms
23,812 KB
testcase_08 AC 68 ms
25,748 KB
testcase_09 AC 66 ms
23,812 KB
testcase_10 WA -
testcase_11 AC 65 ms
23,844 KB
testcase_12 AC 66 ms
23,752 KB
testcase_13 AC 66 ms
23,928 KB
testcase_14 AC 68 ms
25,956 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;

namespace prob388
{
    class Program
    {
        static void Main(string[] args)
        {
            int[] a = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
            if (a[0] % a[1] == 0)
            {
                Console.WriteLine(a[0] / a[1]);
            }
            else
            {
                Console.WriteLine(Math.Ceiling((double)a[0] / (double)a[1]));
            }
        }
    }
}
0