No.8035 2018
問題文最終更新日: 2020-04-01 19:13:17
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 April fool contest 2018
(順位表)
の他の問題:
Problem Statement
The new fiscal year (fiscal 2018) has finally started, choku! So now, here's a quiz for you, choku~!
A sequence $a$ is hidden, choku. This sequence starts from index $1$, choku. Tell me the $N$-th value, choku~!
It looks hard, so here's a big hint! This sequence consists of the numbers satisfying a certain condition, arranged in ascending order, choku~! What is the property that $2018$ and $2019$ both satisfy, choku~?
Input
$N$
An integer $N \ (1 \leq N \leq 10^6)$ is given on $1$ line, choku~!
Output
Output $a_N$ on $1$ line, choku~! Don't forget to put a newline at the end, choku~~~~~~~~~~~★★★★★!
Sample
Sample 1
Input
570
Output
2018
Sample 2
Input
571
Output
2019
Sample 3
Input
2018
Output
7619
提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。