結果

問題 No.47 ポケットを叩くとビスケットが2倍
ユーザー _mi_lin__mi_lin_
提出日時 2019-04-10 17:40:52
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 60 ms / 5,000 ms
コード長 450 bytes
コンパイル時間 2,449 ms
コンパイル使用メモリ 104,260 KB
実行使用メモリ 25,056 KB
最終ジャッジ日時 2023-09-22 01:56:16
合計ジャッジ時間 5,062 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 60 ms
22,980 KB
testcase_01 AC 59 ms
23,020 KB
testcase_02 AC 59 ms
24,960 KB
testcase_03 AC 59 ms
23,084 KB
testcase_04 AC 58 ms
20,956 KB
testcase_05 AC 57 ms
24,984 KB
testcase_06 AC 59 ms
22,944 KB
testcase_07 AC 59 ms
22,784 KB
testcase_08 AC 58 ms
23,012 KB
testcase_09 AC 58 ms
25,000 KB
testcase_10 AC 58 ms
22,856 KB
testcase_11 AC 59 ms
24,936 KB
testcase_12 AC 59 ms
22,896 KB
testcase_13 AC 58 ms
21,032 KB
testcase_14 AC 59 ms
22,936 KB
testcase_15 AC 58 ms
21,004 KB
testcase_16 AC 59 ms
24,940 KB
testcase_17 AC 59 ms
23,072 KB
testcase_18 AC 58 ms
22,824 KB
testcase_19 AC 58 ms
22,944 KB
testcase_20 AC 59 ms
24,968 KB
testcase_21 AC 58 ms
23,008 KB
testcase_22 AC 57 ms
20,964 KB
testcase_23 AC 58 ms
25,056 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;
using System.Threading.Tasks;

namespace No47biscuit
{
    class Program
    {
        static void Main(string[] args)
        {
            //値の入力
            int N = int.Parse(Console.ReadLine());
            //計算
            double ans = System.Math.Log(N, 2);
            //表示
            Console.WriteLine(Math.Ceiling(ans));
        }
    }
}
0