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 listAug 2, 2022 19:27Eugene ZhydzetskiEugene ZhydzetskiScore: 147,124Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 2, 2022 19:28147,1081,293,837,1461,220,993,26602,195,456
2Aug 2, 2022 19:27147,1171,289,467,9131,221,068,93802,203,648
3Aug 2, 2022 19:28147,1171,293,556,1301,221,074,95302,207,744
4Aug 2, 2022 19:28147,1241,282,983,3341,221,127,83702,195,456
5Aug 2, 2022 19:27147,1261,286,182,0301,221,146,21402,207,744
6Aug 2, 2022 19:27147,1621,275,403,7741,221,444,44202,207,744