結果
問題 |
No.3159 Just Answer 10 Integers!
|
ユーザー |
|
提出日時 | 2025-05-15 22:48:53 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 296 bytes |
コンパイル時間 | 357 ms |
コンパイル使用メモリ | 82,000 KB |
実行使用メモリ | 66,960 KB |
最終ジャッジ日時 | 2025-05-23 18:31:23 |
合計ジャッジ時間 | 1,836 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 3 WA * 5 RE * 1 |
ソースコード
from itertools import combinations n = int(input()) primes = [2, 3, 5, 7, 9, 11, 13, 17, 19] if n == 2: print(2, 4) else: a = 1 for i in range(n-1): a *= primes[i] ans = [a] for c in combinations(range(n-1), n-2): a = 1 for ci in c: a *= primes[ci] ans.append(a) print(*ans)