結果

問題 No.820 Power of Two
ユーザー ayaaya
提出日時 2019-08-06 11:21:11
言語 PHP
(8.3.4)
結果
AC  
実行時間 16 ms / 2,000 ms
コード長 214 bytes
コンパイル時間 129 ms
コンパイル使用メモリ 18,668 KB
実行使用メモリ 18,688 KB
最終ジャッジ日時 2023-09-25 17:39:18
合計ジャッジ時間 1,016 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
18,608 KB
testcase_01 AC 15 ms
18,684 KB
testcase_02 AC 16 ms
18,688 KB
testcase_03 AC 15 ms
18,620 KB
testcase_04 AC 16 ms
18,624 KB
testcase_05 AC 16 ms
18,508 KB
testcase_06 AC 16 ms
18,616 KB
testcase_07 AC 15 ms
18,616 KB
testcase_08 AC 16 ms
18,648 KB
testcase_09 AC 15 ms
18,676 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$input=explode(" ",trim(fgets(STDIN)));
//$ansは(pattern1)0<=$ans<=2^$input[0]かつ(pattern2)2^$input[1]の倍数
$pattern1=pow(2,$input[0]);
$pattern2=pow(2,$input[1]);
echo floor($pattern1/$pattern2);
0