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 listJun 2, 2024 18:36GraceGraceScore: 6,613Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 2, 2024 18:366,55278,681,38253,378,0001,007,0002,273,280
2Jun 2, 2024 18:366,58184,778,98553,610,0001,011,0002,396,160
3Jun 2, 2024 18:366,58384,662,14853,628,0001,011,0002,273,280
4Jun 2, 2024 18:366,60387,303,72952,815,0001,993,0002,273,280
5Jun 2, 2024 18:366,60580,625,74653,825,000996,0002,273,280
6Jun 2, 2024 18:366,60686,515,55252,838,0001,993,0002,273,280
7Jun 2, 2024 18:366,60981,869,23554,858,00002,273,280
8Jun 2, 2024 18:366,61375,849,92053,892,000998,0002,514,944
9Jun 2, 2024 18:366,61480,832,09153,902,000998,0002,273,280
10Jun 2, 2024 18:366,68777,309,16555,500,00002,400,256
11Jun 2, 2024 18:366,783119,399,41856,299,57802,281,472
12Jun 2, 2024 18:366,79082,860,08156,360,00002,502,656
13Jun 2, 2024 18:366,80379,493,34156,467,00002,273,280
14Jun 2, 2024 18:366,814110,655,96856,554,79602,277,376
15Jun 2, 2024 18:366,888109,431,04357,168,92402,277,376