結果
問題 |
No.2610 Decreasing LCMs
|
ユーザー |
![]() |
提出日時 | 2025-06-12 21:16:19 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 306 bytes |
コンパイル時間 | 258 ms |
コンパイル使用メモリ | 82,432 KB |
実行使用メモリ | 51,968 KB |
最終ジャッジ日時 | 2025-06-12 21:17:03 |
合計ジャッジ時間 | 5,262 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | WA * 22 |
ソースコード
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)))