eBash

It is not the mountain we conquer but ourselves

Project Euler Problem 48

| Comments

Table of Contents

1 Problem

The series, \(1^1\) + \(2^2\) + \(3^3\) + … + \(10^{10}\) = 10405071317.

Find the last ten digits of the series, \(1^1\) + \(2^2\) + \(3^3\) + … + \(1000^{1000}\).

2 Solution

对于直接大数据操作的,直接运算即可,不支持的只要对结果用模取最后10位进行操作即可.

3 Answer

9110846700

Source:C++

Comments