問題一覧 > 通常問題

No.3536 LCM+ELEMENT=SUM

レベル : / AI推定難易度 : 750 / 実行時間制限 : 1ケース 1.000秒 / メモリ制限 : 512 MB / スペシャルジャッジ問題 (複数の解が存在する可能性があります)
タグ : (AC するまで非表示) / 解いたユーザー数 61
作問者 : nauclhlt / テスター : gomaazarasi
お気に入りにしたユーザー ProblemId : 12612 / 自分の提出
問題文最終更新日: 2026-04-28 22:52:55
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence. Back to the original
yukicoder contest 499 (順位表) の他の問題:

Note

This problem is output-only. No input is given.

Problem Statement

Construct $1$ integer sequence $A=(A_1, A_2, \cdots, A_{|A|})$ that satisfies the following conditions.

  • The length is at least $10$ and at most $10^5$.
  • All values contained in $A$ are at least $1$ and at most $10^5$.
  • The values contained in $A$ are pairwise distinct.
  • There exists an integer $K(1\leq K\leq |A|)$ such that $\displaystyle \mathrm{lcm}(A_1, A_2, \cdots, A_{|A|}) + A_K=\sum_{i=1}^{|A|}A_i$ holds.

Note that $\mathrm{lcm}({x_1, x_2, \cdots, x_k })$ denotes the least common multiple of $x_1, x_2, \cdots, x_k$.

Multiple sequences $A$ satisfy the conditions, and you may output any of them.

Input

No input is given for this problem.

Output

Output a sequence $A=(A_1, A_2, \cdots, A_{|A|})$ satisfying the conditions in the following format.

$|A|$
$A_1\ A_2\ \cdots\ A_{|A|}$

Print a newline at the end.

Sample

Sample 1
Input
Output
5
3 1 4 1 5

This example is only meant to show the output format. Note that outputting it will be judged as incorrect.

提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。