結果

問題 No.1611 Minimum Multiple with Double Divisors
ユーザー umezo
提出日時 2021-07-21 22:54:29
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 394 bytes
コンパイル時間 1,604 ms
コンパイル使用メモリ 192,788 KB
最終ジャッジ日時 2025-01-23 04:55:42
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 9 WA * 28
権限があれば一括ダウンロードができます

ソースコード

diff #

#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define ALL(v) v.begin(),v.end()
typedef long long ll;

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

int main(){
  ios::sync_with_stdio(false);
  std::cin.tie(nullptr);
  
  int t;
  cin>>t;
  while(t--){
    ll x;
    cin>>x;
    for(int i=2;i<100;i++){
      if(x%i!=0){
        cout<<x*i<<endl;
        break;
      }
    }
  }
  
  return 0;
}
0