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 27, 2024 19:06Joad NacerJoad NacerScore: 10,132Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 27, 2024 19:0610,038104,800,26081,312,0002,007,0002,285,568
2Apr 27, 2024 19:0610,039109,053,35982,322,0001,003,0002,285,568
3Apr 27, 2024 19:0610,041108,669,86682,339,0001,004,0002,285,568
4Apr 27, 2024 19:0610,043105,241,15281,349,0002,008,0002,285,568
5Apr 27, 2024 19:0610,050109,468,42382,413,0001,005,0002,285,568
6Apr 27, 2024 19:0610,104105,693,76583,866,00002,519,040
7Apr 27, 2024 19:0610,118108,602,45981,978,0001,999,0002,285,568
8Apr 27, 2024 19:0610,132105,600,55583,092,0001,001,0002,510,848
9Apr 27, 2024 19:0610,256106,958,06684,125,0001,001,0002,519,040
10Apr 27, 2024 19:0610,479162,469,57386,972,49202,281,472
11Apr 27, 2024 19:0610,504156,406,02887,181,84002,273,280
12Apr 27, 2024 19:0610,617144,989,44688,120,77802,273,280
13Apr 27, 2024 19:0610,967118,483,45090,026,0001,000,0002,285,568
14Apr 27, 2024 19:0610,970110,568,66889,047,0002,001,0002,375,680
15Apr 27, 2024 19:0611,583121,828,50394,137,0002,002,0002,514,944