問題一覧 > 通常問題

No.299 Can't Read the Ant Book

レベル : / AI推定難易度 : 77 / 実行時間制限 : 1ケース 1.000秒 / メモリ制限 : 50 MB / 標準ジャッジ問題
タグ : (AC するまで非表示) / 解いたユーザー数 849
作問者 : matsu7874
お気に入りにしたユーザー ProblemId : 808 / 自分の提出
問題文最終更新日: 2026-07-01 03:30:12
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 126 (順位表) の他の問題:

Problem Statement

There is a famous book called "Programming Contest Challenge Book", commonly known as the "Ant Book".
The first edition of this book has 316 pages, and the second edition has as many as 368 pages.

From this, one can conjecture that the number of pages of the Ant Book forms an arithmetic progression, increasing by 52(=368-316) pages with each new edition.

Calculate the number of pages of the $N$-th edition of the Ant Book based on this conjecture.

Input

N

$N$ is an integer satisfying $1 \le N \le 10^{10}$.

Output

Output the conjectured number of pages of the $N$-th edition of the Ant Book on one line.
Print a newline at the end.

Sample

Sample 1
Input
1
Output
316

The 1st edition has 316 pages.

Sample 2
Input
2
Output
368

The 2nd edition has 368 pages.

Sample 3
Input
987654321
Output
51358024956

The 987654321st edition of the Ant Book has 51358024956 pages, and it is conjectured that it will have 162525395 times as many pages as the 1st edition.

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