結果
| 問題 |
No.820 Power of Two
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-07-10 14:09:27 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 238 bytes |
| コンパイル時間 | 342 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 17,568 KB |
| 最終ジャッジ日時 | 2024-10-15 04:38:09 |
| 合計ジャッジ時間 | 3,809 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 2 TLE * 1 -- * 7 |
ソースコード
def power_of_two(n,k):
x_min = 2**k
x_max = 2**n
counter = 0
x = x_min
while x <= x_max:
counter += 1
x += x_min
return counter
n,k = map(int,input().split())
ans = power_of_two(n,k)
print(ans)