結果

問題 No.3159 Just Answer 10 Integers!
ユーザー LyricalMaestro
提出日時 2025-06-15 17:58:43
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 55 ms / 2,000 ms
コード長 423 bytes
コンパイル時間 443 ms
コンパイル使用メモリ 82,596 KB
実行使用メモリ 53,784 KB
最終ジャッジ日時 2025-06-15 17:58:45
合計ジャッジ時間 2,101 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

## https://yukicoder.me/problems/no/1739



def main():
    N = int(input())

    primes = [2, 3, 5, 7, 11, 13, 17, 19, 23]

    base = 1
    for p in primes:
        base *= p

    answer = [base]
    for p in primes:
        if len(answer) == N:
            break

        q = base // p
        answer.append(q)
    
    print(" ".join(map(str, answer)))




    


        

    



if __name__ == "__main__":
    main()
0