結果
| 問題 |
No.2610 Decreasing LCMs
|
| コンテスト | |
| ユーザー |
gew1fw
|
| 提出日時 | 2025-06-12 13:11:08 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 452 bytes |
| コンパイル時間 | 206 ms |
| コンパイル使用メモリ | 82,036 KB |
| 実行使用メモリ | 54,176 KB |
| 最終ジャッジ日時 | 2025-06-12 13:13:52 |
| 合計ジャッジ時間 | 4,474 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | WA * 22 |
ソースコード
n = int(input())
if n == 3:
print("21 24 144")
else:
# For n > 3, we can extend the sequence by adding numbers in front of 21
# For example, starting from 20, 21, 24, 144 and adding more numbers before 20
# Here, we construct a sequence starting from 20 - (n-3)*2, stepping by 2 each time
start = 20 - (n - 3) * 2
sequence = list(range(start, 20 + 1, 2))
sequence += [21, 24, 144]
print(' '.join(map(str, sequence[:n])))
gew1fw