@@ -0,0 +1,379 @@
+import java.math.BigInteger;%0A%0Apublic class Main %7B%0A%09%0A%09%0A%09public static void main (String%5B%5D args) throws java.lang.Exception%0A%09%7B%0A%09%09BigInteger sum = BigInteger.ZERO;%0A%09%09BigInteger mod = BigInteger.TEN.pow(10);%0A%09%09%0A%09%09for (BigInteger i = BigInteger.ONE; i.intValue() %3C= 1000; i = i.add(BigInteger.ONE)) %7B%0A%09%09%09sum = sum.add(i.modPow(i, mod)).mod(mod);%0A%09%09%7D%0A%09%09%0A%09%09System.out.println(sum);%0A%09%7D%0A%7D

Solve problem 48