結果

問題 No.1611 Minimum Multiple with Double Divisors
ユーザー moharan627moharan627
提出日時 2021-07-22 00:16:14
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 897 bytes
コンパイル時間 330 ms
コンパイル使用メモリ 87,124 KB
実行使用メモリ 78,252 KB
最終ジャッジ日時 2023-09-24 20:10:46
合計ジャッジ時間 6,751 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 155 ms
77,104 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 AC 71 ms
71,008 KB
testcase_29 AC 68 ms
71,308 KB
testcase_30 AC 68 ms
71,264 KB
testcase_31 AC 71 ms
71,124 KB
testcase_32 AC 70 ms
71,204 KB
testcase_33 AC 68 ms
71,184 KB
testcase_34 AC 69 ms
71,276 KB
testcase_35 WA -
testcase_36 AC 69 ms
71,184 KB
testcase_37 AC 71 ms
71,160 KB
testcase_38 AC 71 ms
71,124 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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)#再帰関数ではコメントにしないこと!!
0