結果
| 問題 |
No.820 Power of Two
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-05-03 18:05:06 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 305 bytes |
| コンパイル時間 | 801 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-12-31 15:55:13 |
| 合計ジャッジ時間 | 1,656 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 9 WA * 1 |
ソースコード
inputs_nk = input().split()
N_num = int(inputs_nk[0])
K_num = int(inputs_nk[1])
N_mul = 2 ** N_num
K_mul = 2 ** K_num
count = 0
if K_mul == 1:
count = N_mul
else:
while K_mul < N_mul:
if K_mul * (count + 1) <= N_mul:
count += 1
else:
break;
print(count)