結果
問題 |
No.1611 Minimum Multiple with Double Divisors
|
ユーザー |
|
提出日時 | 2021-07-21 22:32:32 |
言語 | C++17(clang) (17.0.6 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 350 bytes |
コンパイル時間 | 565 ms |
コンパイル使用メモリ | 122,196 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-07-17 19:30:20 |
合計ジャッジ時間 | 2,989 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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; }