結果
| 問題 | No.1611 Minimum Multiple with Double Divisors | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2021-07-22 00:16:14 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 897 bytes | 
| コンパイル時間 | 302 ms | 
| コンパイル使用メモリ | 82,460 KB | 
| 実行使用メモリ | 76,904 KB | 
| 最終ジャッジ日時 | 2024-07-17 20:55:17 | 
| 合計ジャッジ時間 | 4,899 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 9 WA * 28 | 
ソースコード
import sys
INF = float('inf')
#10**20,2**63,float('inf')
MOD = 10**9 + 7
MOD2 = 998244353
#from collections import defaultdict
def solve():
    def II(): return int(sys.stdin.readline())
    def LI(): return list(map(int, sys.stdin.readline().split()))
    def LC(): return list(input())
    def IC(): return [int(c) for c in input()]
    def MI(): return map(int, sys.stdin.readline().split())
    """
    import math
    def my_lcm(x, y):
        return (x * y) // math.gcd(x, y)
    lcm = 1
    for n in range(2,50):
        lcm = my_lcm(lcm,n)
        print(lcm)
    """
    T = II()
    for _ in range(T):
        X = II()
        if X==1:
            print(2)
            continue
        for n in range(2,50):
            if X%n != 0:
                print(X*n)
                break
    return
solve()
#sys.setrecursionlimit(10 ** 6)#再帰関数ではコメントにしないこと!!
            
            
            
        