結果
| 問題 | No.1611 Minimum Multiple with Double Divisors |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-07-21 22:32:32 |
| 言語 | C++17(clang) (clang++ 22.1.8 + boost 1.92.0 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 350 bytes |
| 記録 | |
| コンパイル時間 | 1,113 ms |
| コンパイル使用メモリ | 132,480 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-08-15 20:38:27 |
| 合計ジャッジ時間 | 4,161 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 9 WA * 28 |
ソースコード
#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(long long i = 2 ; i <= 100; ++i)
if (n % i != 0) {
res *= i;
break;
}
printf("%lld\n", res);
}
return 0;
}