测评会员优惠活动进行中 · 开通 VIP,有效期内测评不限次 VIP 优惠中 · 测评不限次 立即查看

A11624. A Creative Cutout

编程题 普及/提高-

题目描述

The first line contains one integer $m$ $(1<=m<=10^{12})$ .

输入格式

In the first line print one integer representing ![](/uploads/acgo/image/23653a312bd7dad9_62e4865e5766.jpeg).

输出格式

A piece of paper with $5$ circles is shown in the following.

![](/uploads/acgo/image/65bc93c239fe6c1a_1aef08b6cd96.jpeg)There are $5$ types of lattice points where the degree of beauty of each red point is $1+2+3+4+5=15$ , the degree of beauty of each orange point is $2+3+4+5=14$ , the degree of beauty of each green point is $4+5=9$ , the degree of beauty of each blue point is $5$ and the degree of beauty of each gray point is $0$ . Therefore, $f(5)=5·15+4·14+4·9+8·5=207$ .

Similarly, $f(1)=5,f(2)=23,f(3)=50,f(4)=102$ and consequently ![](/uploads/acgo/image/c7a1ac12d13134aa_aea9d33e2d02.jpeg).

输入输出样例

输入 #1
5
输出 #1
387
输入 #2
233
输出 #2
788243189

说明/提示

A piece of paper with $5$ circles is shown in the following.

![](/uploads/acgo/image/95ee59dbe48407ba_a856c1475b3b.jpeg)There are $5$ types of lattice points where the degree of beauty of each red point is $1+2+3+4+5=15$ , the degree of beauty of each orange point is $2+3+4+5=14$ , the degree of beauty of each green point is $4+5=9$ , the degree of beauty of each blue point is $5$ and the degree of beauty of each gray point is $0$ . Therefore, $f(5)=5·15+4·14+4·9+8·5=207$ .

Similarly, $f(1)=5,f(2)=23,f(3)=50,f(4)=102$ and consequently ![](/uploads/acgo/image/478b8d147c682a0e_20c1194b203e.jpeg).
上一题 去做题 下一题