結果

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

ソースコード

diff #

n = int(input())
if n == 3:
    print("21 24 144")
else:
    # For n > 3, we can extend the sequence by adding numbers in front of 21
    # For example, starting from 20, 21, 24, 144 and adding more numbers before 20
    # Here, we construct a sequence starting from 20 - (n-3)*2, stepping by 2 each time
    start = 20 - (n - 3) * 2
    sequence = list(range(start, 20 + 1, 2))
    sequence += [21, 24, 144]
    print(' '.join(map(str, sequence[:n])))
0