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 29, 2024 12:21Joad NacerJoad NacerScore: 9,411Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2024 12:219,149134,490,55875,938,98802,265,088
2Apr 29, 2024 12:219,173146,064,79076,139,81402,277,376
3Apr 29, 2024 12:219,176158,490,15876,163,58002,273,280
4Apr 29, 2024 12:219,407103,258,65376,078,0002,002,0002,281,472
5Apr 29, 2024 12:219,408101,472,39876,082,0002,002,0002,285,568
6Apr 29, 2024 12:219,409106,270,60976,095,0002,002,0002,265,088
7Apr 29, 2024 12:219,410100,351,40177,103,0001,001,0002,277,376
8Apr 29, 2024 12:219,411106,566,56677,111,0001,001,0002,269,184
9Apr 29, 2024 12:219,413105,803,52277,123,0001,001,0002,265,088
10Apr 29, 2024 12:219,415105,388,82076,138,0002,003,0002,285,568
11Apr 29, 2024 12:219,421102,720,17177,193,0001,002,0002,273,280
12Apr 29, 2024 12:219,423102,211,60676,205,0002,005,0002,285,568
13Apr 29, 2024 12:2111,402122,666,44993,629,0001,006,0002,355,200
14Apr 29, 2024 12:2111,430120,213,36392,870,0001,997,0002,367,488
15Apr 29, 2024 12:2111,454121,062,82293,071,0002,001,0002,285,568