No.299 Can't Read the Ant Book
タグ : / 解いたユーザー数 849
作問者 :
matsu7874
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もしくは右上の雲マークをクリックしてアカウントを作成してください。