We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
  • HackerRank Home

    HackerRank

  • |
  • Prepare
  • Certify
  • Compete
  • Hiring developers?
  1. All Contests
  2. ProjectEuler+
  3. Project Euler #13: Large sum

Project Euler #13: Large sum

Problem
Submissions
Leaderboard
Discussions

This problem is a programming version of Problem 13 from projecteuler.net

Work out the first ten digits of the sum of numbers.

Input Format

First line contains , next lines contain a 50 digit number each.

Constraints

Output Format

Print only first 10 digit of the final sum

Sample Input

5
37107287533902102798797998220837590246510135740250
46376937677490009712648124896970078050417018260538
74324986199524741059474233309513058123726617309629
91942213363574161572522430563301811072406154908250
23067588207539346171171980310421047513778063246676

Sample Output

2728190129

Explanation

Summing the numbers we get , first 10 digits are .

Author

shashank21j

Difficulty

Easy

Max Score

100

Submitted By

16767

Need Help?


View discussions
View top submissions

rate this challenge

MORE DETAILS

Download problem statement
Download sample test cases
Suggest Edits

Choose a translation


  • Blog
  • Scoring
  • Environment
  • FAQ
  • About Us
  • Support
  • Careers
  • Terms Of Service
  • Privacy Policy