結果
| 問題 |
No.820 Power of Two
|
| コンテスト | |
| ユーザー |
kya_ski
|
| 提出日時 | 2020-03-30 13:39:28 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 222 bytes |
| コンパイル時間 | 1,503 ms |
| コンパイル使用メモリ | 167,636 KB |
| 実行使用メモリ | 13,752 KB |
| 最終ジャッジ日時 | 2024-06-11 21:54:04 |
| 合計ジャッジ時間 | 5,080 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 2 TLE * 1 -- * 7 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, k, ans = 0;
cin >> n >> k;
for (int x = 1; x <= (1<<n); x++) {
ans += (x % (1<<k) == 0);
}
cout << ans << endl;
return 0;
}
kya_ski