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 26, 2024 21:25Joad NacerJoad NacerScore: 35,672Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 26, 2024 20:4034,474344,539,947286,131,78402,277,376
2Apr 26, 2024 20:4034,499351,738,267286,342,94702,273,280
3Apr 26, 2024 20:4034,503357,961,526286,377,76902,285,568
4Apr 26, 2024 21:2535,672359,638,487296,076,09902,277,376
5Apr 26, 2024 21:2535,689353,772,083296,222,55202,281,472
6Apr 26, 2024 21:2535,723349,213,915296,497,14302,281,472