Huge Sum
CodeChefOpen on judge ↗
175 POINTS Help Sahil in calculating the value of S, which is given as follows. Since the value of S can be very large, he only wants the last 2 digits of S. S=1^N+2^N+3^N+⋯+K^N Input Format The first line contains an integer T i.e. number of the test cases. The next T lines will each contain a pair of integers, i.e. K and N. Output Format Print the last two digits of S for each test case i
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start