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 listJan 7, 2023 16:47Jack FrigaardJack FrigaardScore: 4,952Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 7, 2023 16:474,91566,948,63537,808,0002,984,0002,510,848
2Jan 7, 2023 16:474,91966,635,02038,834,0001,991,0002,519,040
3Jan 7, 2023 16:474,92371,135,44137,868,0002,989,0002,519,040
4Jan 7, 2023 16:474,92563,465,16237,890,0002,991,0002,453,504
5Jan 7, 2023 16:474,92964,484,59137,915,0002,993,0002,461,696
6Jan 7, 2023 16:474,93464,506,60437,959,0002,996,0002,449,408
7Jan 7, 2023 16:474,95163,987,94039,093,0002,004,0002,437,120
8Jan 7, 2023 16:474,95265,722,61639,100,0002,005,0002,519,040
9Jan 7, 2023 16:474,95766,523,23939,139,0002,007,0002,445,312
10Jan 7, 2023 16:474,96667,452,83540,212,0001,005,0002,519,040
11Jan 7, 2023 16:474,99167,850,63939,402,0002,020,0002,519,040
12Jan 7, 2023 16:474,99763,603,68739,455,0002,023,0002,519,040
13Jan 7, 2023 16:475,020104,706,68041,664,85902,211,840
14Jan 7, 2023 16:475,020103,014,35941,665,83702,199,552
15Jan 7, 2023 16:475,085106,221,61542,203,21202,232,320