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 listDec 27, 2024 21:59Joad NacerJoad NacerScore: 4,330Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 27, 2024 21:594,27055,968,60433,414,0002,025,0002,392,064
2Dec 27, 2024 21:594,27058,550,35933,415,0002,025,0002,301,952
3Dec 27, 2024 21:594,27355,053,85534,457,0001,013,0002,449,408
4Dec 27, 2024 21:594,27357,847,37434,454,0001,013,0002,445,312
5Dec 27, 2024 21:594,27358,247,61232,428,0003,040,0002,301,952
6Dec 27, 2024 21:594,29360,632,56433,600,0002,036,0002,301,952
7Dec 27, 2024 21:594,31659,474,99131,845,0003,980,0002,453,504
8Dec 27, 2024 21:594,33059,551,52433,946,0001,996,0002,301,952
9Dec 27, 2024 21:594,36958,320,47534,249,0002,014,0002,449,408
10Dec 27, 2024 21:594,37556,289,33633,290,0003,026,0002,441,216
11Dec 27, 2024 21:594,38057,381,77534,332,0002,019,0002,445,312
12Dec 27, 2024 21:594,38760,055,85234,392,0002,023,0002,297,856
13Dec 27, 2024 21:594,41661,939,59733,596,0003,054,0002,301,952
14Dec 27, 2024 21:594,56263,229,16135,875,0001,993,0002,297,856
15Dec 27, 2024 21:594,87569,039,68238,441,0002,023,0002,297,856