結果

問題 No.2610 Decreasing LCMs
ユーザー gew1fw
提出日時 2025-06-12 16:09:44
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 306 bytes
コンパイル時間 177 ms
コンパイル使用メモリ 82,636 KB
実行使用メモリ 54,092 KB
最終ジャッジ日時 2025-06-12 16:09:49
合計ジャッジ時間 4,039 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other WA * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

def construct_sequence(n):
    if n == 3:
        return [21, 24, 144]
    else:
        a = [21, 24, 144]
        for i in range(3, n):
            next_val = a[-1] * (i)
            a.append(next_val)
        return a

n = int(input())
sequence = construct_sequence(n)
print(' '.join(map(str, sequence)))
0