結果

問題 No.1058 素敵な数
ユーザー kyo1
提出日時 2020-10-12 07:00:32
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 402 bytes
コンパイル時間 1,950 ms
コンパイル使用メモリ 199,336 KB
最終ジャッジ日時 2025-01-15 06:51:36
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other WA * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;

int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  int N;
  cin >> N;
  vector<int64_t> cands;
  cands.emplace_back(1);
  for (int64_t a = 100001; a < 100010; a++) {
    for (int64_t b = 100001; b < 100010; b++) {
      cands.emplace_back(a * b);
    }
  }
  sort(cands.begin(), cands.end());
  cout << cands[N - 1] << '\n';
  return 0;
}
0