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 10, 2024 22:28Matt StuchlikMatt StuchlikScore: 22,193Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 10, 2024 22:2820,680237,649,296171,646,50302,281,472
2Apr 10, 2024 22:2821,198236,319,494175,942,59102,293,760
3Apr 10, 2024 22:2821,203247,825,165175,988,98402,289,664
4Apr 10, 2024 22:2822,179210,213,352182,088,0002,000,0002,285,568
5Apr 10, 2024 22:2822,183210,534,362182,119,0002,001,0002,285,568
6Apr 10, 2024 22:2822,188212,180,236182,157,0002,001,0002,269,184
7Apr 10, 2024 22:2822,193207,212,688182,199,0002,002,0002,285,568
8Apr 10, 2024 22:2822,197208,489,771182,230,0002,002,0002,277,376
9Apr 10, 2024 22:2822,199209,069,006182,253,0002,002,0002,265,088
10Apr 10, 2024 22:2822,211210,833,546183,354,0001,001,0002,359,296
11Apr 10, 2024 22:2822,245213,900,928182,640,0001,996,0002,273,280
12Apr 10, 2024 22:2822,458210,963,173185,398,0001,002,0002,531,328