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 listMay 29, 2024 15:49GraceGraceScore: 6,557Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 29, 2024 15:496,46083,391,94150,586,0003,035,0002,445,312
2May 29, 2024 15:496,51680,067,26751,081,0003,004,0002,289,664
3May 29, 2024 15:496,52080,954,58251,108,0003,006,0002,461,696
4May 29, 2024 15:496,53478,038,25150,213,0004,017,0002,289,664
5May 29, 2024 15:496,53576,995,35751,225,0003,013,0002,433,024
6May 29, 2024 15:496,53779,952,04051,240,0003,014,0002,469,888
7May 29, 2024 15:496,53983,797,53450,255,0004,020,0002,334,720
8May 29, 2024 15:496,55777,056,63251,399,0003,023,0002,469,888
9May 29, 2024 15:496,57184,135,81852,518,0002,019,0002,428,928
10May 29, 2024 15:496,57884,663,93652,576,0002,022,0002,301,952
11May 29, 2024 15:496,58886,644,51352,657,0002,025,0002,428,928
12May 29, 2024 15:496,68780,414,90851,466,0004,036,0002,318,336
13May 29, 2024 15:497,171124,512,69559,519,04502,183,168
14May 29, 2024 15:497,234127,852,68160,041,03902,310,144
15May 29, 2024 15:497,242144,097,91960,105,79402,191,360