Parse integers Sergey Svistunov

Compute the sum of integers read from STDIN as fast as possible.

Input: 50 000 000 lines, each containing one integer in the range [0; 2147483647].

629871117
2024562523
1372689083
1021777120
2111176472

Output: The uint64 sum of all numbers, printed as a decimal string.

Note: Integer overflow is expected – use a 64-bit accumulator.

Back to listJun 2, 2024 18:45GraceGraceScore: 6,604Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 2, 2024 18:456,52077,101,57552,108,0002,004,0002,396,160
2Jun 2, 2024 18:456,52878,728,53852,179,0002,006,0002,404,352
3Jun 2, 2024 18:456,53983,069,49952,264,0002,010,0002,404,352
4Jun 2, 2024 18:456,56477,627,86253,472,0001,008,0002,273,280
5Jun 2, 2024 18:456,58083,711,42954,610,00002,400,256
6Jun 2, 2024 18:456,58284,363,82453,616,0001,011,0002,387,968
7Jun 2, 2024 18:456,58377,496,84952,655,0001,987,0002,392,064
8Jun 2, 2024 18:456,60484,677,93452,821,0001,993,0002,273,280
9Jun 2, 2024 18:456,60981,725,91953,858,000997,0002,404,352
10Jun 2, 2024 18:456,62480,673,42553,982,000999,0002,396,160
11Jun 2, 2024 18:456,63079,320,18453,031,0002,001,0002,396,160
12Jun 2, 2024 18:456,64884,150,95053,172,0002,006,0002,273,280
13Jun 2, 2024 18:456,775119,349,50356,234,08902,289,664
14Jun 2, 2024 18:456,804121,048,61256,475,25502,281,472
15Jun 2, 2024 18:456,894127,619,09057,219,77002,289,664