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 listApr 7, 2022 15:48DiasDiasScore: 1,768,765Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 7, 2022 15:481,635,04013,640,172,30413,570,829,66502,260,992
2Apr 7, 2022 15:481,768,76514,731,834,94914,680,745,50402,248,704
3Apr 7, 2022 15:482,353,41519,600,556,66419,533,340,44802,260,992