結果
| 問題 | No.1611 Minimum Multiple with Double Divisors | 
| コンテスト | |
| ユーザー |  たたき@競プロ | 
| 提出日時 | 2023-08-31 08:40:30 | 
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 824 bytes | 
| コンパイル時間 | 6,741 ms | 
| コンパイル使用メモリ | 332,488 KB | 
| 実行使用メモリ | 12,120 KB | 
| 最終ジャッジ日時 | 2025-01-03 04:29:20 | 
| 合計ジャッジ時間 | 11,834 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 9 WA * 28 | 
ソースコード
#include<bits/stdc++.h>
using namespace std;
#include <atcoder/all>
using namespace atcoder;
using mint=modint998244353; //1000000007;
using ll=long long;
using pp=pair<int,int>;
#define sr string 
#define vc vector
#define fi first
#define se second
#define rep(i,n) for(int i=0;i<(int)n;i++)
#define pb push_back
#define all(v) v.begin(),v.end()
#define pque priority_queue
#define bpc(a) __builtin_popcount(a)
int main(){
  ll m=1e6;
  vc<ll>bo(m,1);
  vc<ll>ps;
  for(ll i=2;i<m;i++)if(bo[i]){
    ps.pb(i); 
    for(ll j=i*2;j<m;j+=i)bo[j]=0;
  }
  m=ps[20];
  vc<ll>px;
  rep(i,20){
  	ll now=ps[i];
    while(now<m){px.pb(now); now*=ps[i];}
  }
  sort(all(px));
  ll t;cin>>t;
  //rep(i,20)cout<<px[i]<<' ';
  rep(i,t){
    ll x;cin>>x;
    for(auto au:px)if(x%au!=0){
      cout<<x*au<<"\n";
      break;
    }
  }
}
            
            
            
        