結果

問題 No.1611 Minimum Multiple with Double Divisors
ユーザー 風月
提出日時 2021-07-21 22:30:43
言語 C++17(clang)
(17.0.6 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 343 bytes
コンパイル時間 1,413 ms
コンパイル使用メモリ 122,192 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-07-17 19:25:59
合計ジャッジ時間 3,903 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 9 WA * 28
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<queue>
#include<vector>
using namespace std;
const int N = 1e6 + 5;
int T;
long long n, m;
bool vis[N];
int main() {
	scanf("%d", &T);
	while (T--) {
		scanf("%lld", &n);
		long long res = n;
		for(int i = 2 ; i <= 45; ++i)
			if (n % i != 0) {
				res *= i;
				break;
			}
		printf("%lld\n", res);
	}
	return 0;
}
0