結果

問題 No.47 ポケットを叩くとビスケットが2倍
ユーザー kimnykimny
提出日時 2017-11-16 21:27:13
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 49 ms / 5,000 ms
コード長 467 bytes
コンパイル時間 2,380 ms
コンパイル使用メモリ 99,936 KB
実行使用メモリ 23,384 KB
最終ジャッジ日時 2023-08-16 17:08:26
合計ジャッジ時間 4,730 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 46 ms
21,200 KB
testcase_01 AC 49 ms
21,024 KB
testcase_02 AC 47 ms
20,936 KB
testcase_03 AC 46 ms
21,280 KB
testcase_04 AC 46 ms
21,284 KB
testcase_05 AC 48 ms
20,888 KB
testcase_06 AC 47 ms
21,172 KB
testcase_07 AC 46 ms
21,192 KB
testcase_08 AC 48 ms
21,316 KB
testcase_09 AC 47 ms
23,200 KB
testcase_10 AC 47 ms
21,240 KB
testcase_11 AC 48 ms
21,260 KB
testcase_12 AC 47 ms
23,384 KB
testcase_13 AC 46 ms
21,264 KB
testcase_14 AC 47 ms
21,240 KB
testcase_15 AC 47 ms
21,148 KB
testcase_16 AC 47 ms
21,304 KB
testcase_17 AC 47 ms
21,276 KB
testcase_18 AC 47 ms
23,336 KB
testcase_19 AC 48 ms
21,300 KB
testcase_20 AC 47 ms
21,296 KB
testcase_21 AC 47 ms
21,288 KB
testcase_22 AC 47 ms
23,284 KB
testcase_23 AC 49 ms
23,328 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 yukicoder_47 {
    class Program {
        static void Main(string[] args) {
            int n = int.Parse(Console.ReadLine());
            int count = 0;
            for(int i = 0; n - Math.Pow(2, i) > 0; i++) {
                count++;
            }
            Console.WriteLine(count);
            Console.ReadLine();
        }
    }
}
0