問題一覧 > 通常問題

No.687 E869120 and Constructing Array 1

レベル : / AI推定難易度 : 77 / 実行時間制限 : 1ケース 1.000秒 / メモリ制限 : 256 MB / スペシャルジャッジ問題 (複数の解が存在する可能性があります)
タグ : (AC するまで非表示) / 解いたユーザー数 577
作問者 : e869120 / テスター : はむこ
お気に入りにしたユーザー ProblemId : 1667 / 自分の提出
問題文最終更新日: 2026-06-25 05:17:23
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 191 (順位表) の他の問題:

Problem Statement

Output $1$ possible sequence $a$ such that $a_1+a_2=N$.
Here, $1 \leq a_i \leq 10$ must hold.

Input

N

On line $1$, an integer $N$ between $2$ and $20$, inclusive, is given.

Output

Output $a_1$, $a_2$ such that $a_1+a_2=N$, separated by a space.
Print a newline at the end.

Sample

Sample 1
Input
14
Output
6 8

$6+8=14$.

Sample 2
Input
3
Output
2 1

Another answer is $1$ $2$. You may output any of them.

Sample 3
Input
20
Output
10 10

This is the case where $N$ is at its maximum.

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