結果
問題 |
No.2610 Decreasing LCMs
|
ユーザー |
![]() |
提出日時 | 2025-06-12 21:18:11 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 544 bytes |
コンパイル時間 | 180 ms |
コンパイル使用メモリ | 82,056 KB |
実行使用メモリ | 54,008 KB |
最終ジャッジ日時 | 2025-06-12 21:18:29 |
合計ジャッジ時間 | 4,048 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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)))