結果

問題 No.47 ポケットを叩くとビスケットが2倍
ユーザー suzusuzu
提出日時 2023-05-23 09:43:10
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 273 bytes
コンパイル時間 3,911 ms
コンパイル使用メモリ 100,148 KB
実行使用メモリ 25,020 KB
最終ジャッジ日時 2023-08-24 15:46:05
合計ジャッジ時間 6,180 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 53 ms
21,152 KB
testcase_01 AC 54 ms
22,896 KB
testcase_02 AC 54 ms
20,868 KB
testcase_03 AC 54 ms
23,228 KB
testcase_04 AC 54 ms
23,280 KB
testcase_05 WA -
testcase_06 AC 54 ms
21,100 KB
testcase_07 AC 53 ms
23,228 KB
testcase_08 AC 54 ms
21,140 KB
testcase_09 AC 53 ms
21,096 KB
testcase_10 AC 54 ms
21,180 KB
testcase_11 AC 53 ms
21,188 KB
testcase_12 AC 54 ms
21,160 KB
testcase_13 AC 54 ms
21,092 KB
testcase_14 AC 54 ms
19,016 KB
testcase_15 AC 56 ms
21,208 KB
testcase_16 AC 54 ms
23,172 KB
testcase_17 AC 53 ms
21,088 KB
testcase_18 AC 53 ms
21,032 KB
testcase_19 AC 55 ms
23,112 KB
testcase_20 AC 55 ms
21,176 KB
testcase_21 AC 54 ms
23,204 KB
testcase_22 AC 55 ms
23,160 KB
testcase_23 AC 55 ms
21,204 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 yukicoder
{
	class pg
	{
		static void Main(string[] args)
		{
			int n = int.Parse(Console.ReadLine());
			int ans = 0;
			
			for(int i = 1;Math.Pow(2,i) < n;i++)
			{
				ans = i;
			}
			
			Console.WriteLine(++ans);
		}
	}
}
0