結果
| 問題 | No.3159 Just Answer 10 Integers! | 
| コンテスト | |
| ユーザー |  norioc | 
| 提出日時 | 2025-05-24 07:03:54 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 39 ms / 2,000 ms | 
| コード長 | 262 bytes | 
| コンパイル時間 | 706 ms | 
| コンパイル使用メモリ | 82,900 KB | 
| 実行使用メモリ | 52,224 KB | 
| 最終ジャッジ日時 | 2025-05-24 07:03:57 | 
| 合計ジャッジ時間 | 2,192 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 1 | 
| other | AC * 9 | 
ソースコード
from math import prod
def solve(n: int):
    primes = [1, 2, 3, 5, 7, 11, 13, 17, 19, 23][:n]
    x = prod(primes)
    res = []
    for i in range(len(primes)):
        res.append(x // primes[i])
    return res
N = int(input())
ans = solve(N)
print(*ans)
            
            
            
        