結果

問題 No.3159 Just Answer 10 Integers!
コンテスト
ユーザー kmmtkm
提出日時 2025-05-15 22:48:53
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
RE  
実行時間 -
コード長 296 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 236 ms
コンパイル使用メモリ 95,216 KB
実行使用メモリ 92,928 KB
最終ジャッジ日時 2026-07-10 22:56:39
合計ジャッジ時間 2,628 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 3 WA * 5 RE * 1
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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)
0