結果
問題 | No.47 ポケットを叩くとビスケットが2倍 |
ユーザー | 明智重蔵 |
提出日時 | 2015-07-25 20:48:43 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 57 ms / 5,000 ms |
コード長 | 924 bytes |
コンパイル時間 | 4,716 ms |
コンパイル使用メモリ | 103,000 KB |
実行使用メモリ | 22,872 KB |
最終ジャッジ日時 | 2023-09-22 23:09:58 |
合計ジャッジ時間 | 4,821 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 55 ms
20,808 KB |
testcase_01 | AC | 55 ms
20,696 KB |
testcase_02 | AC | 56 ms
20,800 KB |
testcase_03 | AC | 56 ms
20,680 KB |
testcase_04 | AC | 56 ms
20,660 KB |
testcase_05 | AC | 56 ms
20,672 KB |
testcase_06 | AC | 55 ms
18,648 KB |
testcase_07 | AC | 57 ms
22,872 KB |
testcase_08 | AC | 55 ms
20,636 KB |
testcase_09 | AC | 55 ms
20,704 KB |
testcase_10 | AC | 56 ms
20,556 KB |
testcase_11 | AC | 55 ms
20,884 KB |
testcase_12 | AC | 56 ms
20,628 KB |
testcase_13 | AC | 54 ms
20,800 KB |
testcase_14 | AC | 55 ms
22,740 KB |
testcase_15 | AC | 56 ms
22,656 KB |
testcase_16 | AC | 55 ms
20,668 KB |
testcase_17 | AC | 56 ms
18,704 KB |
testcase_18 | AC | 55 ms
20,892 KB |
testcase_19 | AC | 55 ms
22,700 KB |
testcase_20 | AC | 56 ms
20,772 KB |
testcase_21 | AC | 56 ms
20,668 KB |
testcase_22 | AC | 55 ms
20,656 KB |
testcase_23 | AC | 57 ms
20,600 KB |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; using System.Collections.Generic; class Program { static string InputPattern = "Input4"; static List<string> GetInputList() { var WillReturn = new List<string>(); if (InputPattern == "Input1") { WillReturn.Add("3"); } else if (InputPattern == "Input2") { WillReturn.Add("4"); } else if (InputPattern == "Input3") { WillReturn.Add("1000"); } else { string wkStr; while ((wkStr = Console.ReadLine()) != null) WillReturn.Add(wkStr); } return WillReturn; } static void Main() { List<string> InputList = GetInputList(); long N = long.Parse(InputList[0]); long Bekijyou = 1; int Cnt = 0; while (N > Bekijyou) { Bekijyou *= 2; Cnt++; } Console.WriteLine(Cnt); } }