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 14, 2024 10:44Matt StuchlikMatt StuchlikScore: 18,679Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 14, 2024 10:4418,647186,142,769153,773,000998,0002,285,568
2Apr 14, 2024 10:4418,647180,569,317153,774,000998,0002,269,184
3Apr 14, 2024 10:4418,659181,572,619152,872,0001,998,0002,277,376
4Apr 14, 2024 10:4418,660182,270,347153,882,000999,0002,277,376
5Apr 14, 2024 10:4418,672177,907,326152,979,0001,999,0002,285,568
6Apr 14, 2024 10:4418,679177,354,590153,037,0002,000,0002,285,568
7Apr 14, 2024 10:4418,679177,433,322154,035,0001,000,0002,285,568
8Apr 14, 2024 10:4418,687182,848,943153,105,0002,001,0002,285,568
9Apr 14, 2024 10:4418,703177,677,343153,235,0002,003,0002,355,200
10Apr 14, 2024 10:4420,019228,117,616166,159,46802,293,760
11Apr 14, 2024 10:4420,024222,153,309166,196,77702,285,568
12Apr 14, 2024 10:4420,028225,024,327166,235,41202,289,664