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 25, 2024 23:04Joad NacerJoad NacerScore: 30,329Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 25, 2024 23:0330,308316,879,725251,556,65302,408,448
2Apr 25, 2024 23:0430,315323,075,190251,611,64602,277,376
3Apr 25, 2024 23:0330,321311,701,412251,665,94402,260,992
4Apr 25, 2024 23:0430,329328,902,575251,729,03402,277,376
5Apr 25, 2024 23:0330,332310,027,260251,755,85302,408,448
6Apr 25, 2024 23:0430,826311,404,688255,859,88602,273,280