結果
| 問題 | No.820 Power of Two |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-11-07 22:00:13 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 201 bytes |
| 記録 | |
| コンパイル時間 | 410 ms |
| コンパイル使用メモリ | 20,696 KB |
| 実行使用メモリ | 22,012 KB |
| 最終ジャッジ日時 | 2026-04-04 16:05:29 |
| 合計ジャッジ時間 | 4,158 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge5_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 2 TLE * 1 -- * 7 |
ソースコード
def main():
n, k = map(int, input().split())
cnt = 0
for i in range(1, 2 ** n + 1):
if i % (2 ** k) == 0:
cnt += 1
print(cnt)
if __name__ == "__main__":
main()