No.687 E869120 and Constructing Array 1
問題文最終更新日: 2026-06-25 05:17:23
English (AI translation)
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もしくは右上の雲マークをクリックしてアカウントを作成してください。
e869120
はむこ