結果

問題 No.1351 Sum of GCD Equals LCM
ユーザー qwewe
提出日時 2025-04-24 12:30:53
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 41 ms / 2,000 ms
コード長 199 bytes
コンパイル時間 280 ms
コンパイル使用メモリ 82,592 KB
実行使用メモリ 53,664 KB
最終ジャッジ日時 2025-04-24 12:32:15
合計ジャッジ時間 4,331 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 50
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
if n == 3:
    print("6 2 3")
else:
    res = [1, 2, 3]
    current = 3
    for _ in range(n - 3):
        current *= 2
        res.append(current)
    print(' '.join(map(str, res)))
0