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 listJul 29, 2022 14:42Eugene ZhydzetskiEugene ZhydzetskiScore: 234,435Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 29, 2022 17:30233,6372,013,893,0901,939,183,01502,211,840
2Jul 29, 2022 17:30233,7001,998,883,3311,939,712,09802,207,744
3Jul 29, 2022 17:30233,7102,006,892,7861,939,793,77002,215,936
4Jul 29, 2022 14:42234,4352,015,128,3741,945,813,62802,191,360
5Jul 29, 2022 14:42234,5882,017,590,1281,947,078,16202,220,032
6Jul 29, 2022 14:42234,6992,028,585,5381,948,002,52502,203,648