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 28, 2024 00:07Joad NacerJoad NacerScore: 8,907Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 28, 2024 00:077,83887,839,57363,055,0002,001,0002,285,568
2Apr 28, 2024 00:077,84287,230,97963,085,0002,002,0002,269,184
3Apr 28, 2024 00:077,87986,425,63964,388,0001,006,0002,363,392
4Apr 28, 2024 00:077,90794,800,93164,616,0001,009,0002,285,568
5Apr 28, 2024 00:077,95488,371,30464,021,0002,000,0002,285,568
6Apr 28, 2024 00:078,394147,908,30069,667,92602,273,280
7Apr 28, 2024 00:078,42893,975,31667,956,0001,998,0002,285,568
8Apr 28, 2024 00:078,907100,282,66771,930,0001,998,0002,285,568
9Apr 28, 2024 00:078,93096,481,09172,115,0002,003,0002,265,088
10Apr 28, 2024 00:079,113104,044,72474,632,0001,008,0002,269,184
11Apr 28, 2024 00:079,28698,908,51776,072,0001,000,0002,379,776
12Apr 28, 2024 00:079,594154,738,91379,634,29902,273,280
13Apr 28, 2024 00:079,618142,016,10879,830,08902,273,280
14Apr 28, 2024 00:0710,430112,802,93686,573,00002,277,376
15Apr 28, 2024 00:0710,573116,142,42385,761,0001,994,0002,285,568