結果

問題 No.820 Power of Two
ユーザー ixTL255ixTL255
提出日時 2019-09-08 16:54:48
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 62 ms / 2,000 ms
コード長 307 bytes
コンパイル時間 3,355 ms
コンパイル使用メモリ 105,040 KB
実行使用メモリ 24,284 KB
最終ジャッジ日時 2023-09-09 22:33:44
合計ジャッジ時間 4,634 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 61 ms
22,296 KB
testcase_01 AC 61 ms
22,164 KB
testcase_02 AC 62 ms
20,340 KB
testcase_03 AC 61 ms
23,968 KB
testcase_04 AC 61 ms
21,912 KB
testcase_05 AC 61 ms
22,240 KB
testcase_06 AC 61 ms
24,284 KB
testcase_07 AC 61 ms
22,312 KB
testcase_08 AC 61 ms
22,068 KB
testcase_09 AC 61 ms
22,068 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;

public class Yuki820
{
	public static void Main()
	{
		var nk = Console.ReadLine().Split(' ').Select(n => int.Parse(n)).ToList();
	
		var x = (int)Math.Pow(2, nk[1]);
		var y = (int)Math.Pow(2, nk[0]);
			
		Console.WriteLine(y / x);	
	}
}
0