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 20:59Joad NacerJoad NacerScore: 10,163Success
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 20:5910,011107,809,70481,091,0002,002,0002,285,568
2Apr 27, 2024 20:5910,012109,743,24482,096,0001,001,0002,285,568
3Apr 27, 2024 20:5910,020110,372,96982,167,0001,002,0002,285,568
4Apr 27, 2024 20:5910,023110,303,86881,185,0002,004,0002,277,376
5Apr 27, 2024 20:5910,025112,507,84181,203,0002,005,0002,519,040
6Apr 27, 2024 20:5910,026104,496,99982,216,0001,002,0002,277,376
7Apr 27, 2024 20:5910,026106,175,44181,208,0002,005,0002,273,280
8Apr 27, 2024 20:5910,026106,727,10382,213,0001,002,0002,273,280
9Apr 27, 2024 20:5910,036108,162,69681,292,0002,007,0002,285,568
10Apr 27, 2024 20:5910,038111,767,22082,310,0001,003,0002,285,568
11Apr 27, 2024 20:5910,039113,519,49581,314,0002,007,0002,355,200
12Apr 27, 2024 20:5910,048105,094,03881,386,0002,009,0002,273,280
13Apr 27, 2024 20:5910,063110,688,29582,517,0001,006,0002,285,568
14Apr 27, 2024 20:5910,077110,023,35482,629,0001,007,0002,285,568
15Apr 27, 2024 20:5910,097115,089,17082,807,000997,0002,265,088
16Apr 27, 2024 20:5910,163107,422,61982,344,0002,008,0002,285,568
17Apr 27, 2024 20:5910,347156,799,34585,878,46202,273,280
18Apr 27, 2024 20:5910,363138,987,94286,013,54402,277,376
19Apr 27, 2024 20:5910,368141,140,23086,055,66102,265,088
20Apr 27, 2024 20:5910,387138,579,28886,215,97102,273,280
21Apr 27, 2024 20:5910,551150,752,32587,574,93702,269,184
22Apr 27, 2024 20:5910,615112,434,39886,099,0002,002,0002,285,568
23Apr 27, 2024 20:5910,750111,220,35087,217,0002,004,0002,285,568
24Apr 27, 2024 20:5910,846140,411,33690,021,19602,277,376
25Apr 27, 2024 20:5910,848113,311,91788,040,0002,000,0002,260,992
26Apr 27, 2024 20:5910,876116,880,02688,265,0002,006,0002,285,568
27Apr 27, 2024 20:5910,883113,383,12888,319,0002,007,0002,285,568
28Apr 27, 2024 20:5910,883114,465,13289,328,0001,003,0002,285,568
29Apr 27, 2024 20:5910,909117,040,50489,542,0001,006,0002,273,280
30Apr 27, 2024 20:5911,542120,367,02193,803,0001,995,0002,273,280