結果
| 問題 |
No.2610 Decreasing LCMs
|
| コンテスト | |
| ユーザー |
gew1fw
|
| 提出日時 | 2025-06-12 16:07:29 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 544 bytes |
| コンパイル時間 | 179 ms |
| コンパイル使用メモリ | 82,900 KB |
| 実行使用メモリ | 54,352 KB |
| 最終ジャッジ日時 | 2025-06-12 16:07:39 |
| 合計ジャッジ時間 | 4,236 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | WA * 22 |
ソースコード
def find_sequence(n):
if n == 3:
return [21, 24, 144]
sequence = []
a = 21
b = 24
c = 144
sequence.append(a)
sequence.append(b)
sequence.append(c)
k = 7 # Starting multiplicative factor
for i in range(3, n):
next_num = c * k
sequence.append(next_num)
a, b, c = b, c, next_num
k += 2 # Increment by 2 to ensure next_num is larger and maintains the LCM condition
return sequence
n = int(input())
sequence = find_sequence(n)
print(' '.join(map(str, sequence)))
gew1fw