結果
問題 |
No.820 Power of Two
|
ユーザー |
|
提出日時 | 2022-08-16 21:03:46 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 283 bytes |
コンパイル時間 | 1,723 ms |
コンパイル使用メモリ | 165,440 KB |
実行使用メモリ | 10,496 KB |
最終ジャッジ日時 | 2024-10-03 14:05:41 |
合計ジャッジ時間 | 5,208 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 WA * 1 TLE * 1 -- * 7 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { int n,k; std::cin >> n>>k; int nk=pow(2,k); int count=0; for (size_t i = 0; i < pow(2,n); i++) { if (1<=i&&nk%i==0) { count++; } } std::cout << count << '\n'; }