結果

問題 No.3248 構築問題
ユーザー areik
提出日時 2025-08-29 22:18:25
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 745 bytes
コンパイル時間 3,638 ms
コンパイル使用メモリ 251,560 KB
実行使用メモリ 7,716 KB
最終ジャッジ日時 2025-08-29 22:18:30
合計ジャッジ時間 4,651 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#include <atcoder/all>
using namespace std;

using i32 = int;
using i64 = long long;
using f64 = double;
using p2 = pair<i64, i64>;
using el = tuple<i64, i64, i64>;
using mint = atcoder::modint998244353;

void _main();
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  _main();
}

i64 pow(i64 x, i64 n) {
  i64 res = 1;
  i64 t = x;
  while (n > 0) {
    if (n & 1) res *= t;
    t *= t;
    n >>= 1;
  }
  return res;
}
void _main() {
  i64 n, x;
  cin >> n >> x;
  if (n == 1) {
    cout << "No\n";
  } else {
    cout << "Yes\n";
  }
  return;
  i64 a = 1, b = 1;
  for (i64 i = 2; i <= n; i++) {
    i64 p = pow(i, x);
    if (p > n) continue;
    if (n % p == 0) {
      n /= p;
      a *= p;
    }
  }
}
0