結果
| 問題 |
No.2610 Decreasing LCMs
|
| コンテスト | |
| ユーザー |
gew1fw
|
| 提出日時 | 2025-06-12 16:09:44 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 306 bytes |
| コンパイル時間 | 177 ms |
| コンパイル使用メモリ | 82,636 KB |
| 実行使用メモリ | 54,092 KB |
| 最終ジャッジ日時 | 2025-06-12 16:09:49 |
| 合計ジャッジ時間 | 4,039 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | WA * 22 |
ソースコード
def construct_sequence(n):
if n == 3:
return [21, 24, 144]
else:
a = [21, 24, 144]
for i in range(3, n):
next_val = a[-1] * (i)
a.append(next_val)
return a
n = int(input())
sequence = construct_sequence(n)
print(' '.join(map(str, sequence)))
gew1fw