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 listOct 8, 2024 17:26Joad NacerJoad NacerScore: 7,884Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 8, 2024 17:267,84992,391,77963,146,0002,004,0002,437,120
2Oct 8, 2024 17:177,85091,492,93063,153,0002,004,0002,535,424
3Oct 8, 2024 17:177,85092,705,93663,155,0002,004,0002,273,280
4Oct 8, 2024 17:267,86688,656,25063,277,0002,008,0002,428,928
5Oct 8, 2024 17:267,86788,281,90263,289,0002,009,0002,428,928
6Oct 8, 2024 17:267,87085,346,32863,312,0002,009,0002,433,024
7Oct 8, 2024 17:267,87690,544,91665,369,00002,273,280
8Oct 8, 2024 17:177,88487,855,09465,438,00002,437,120
9Oct 8, 2024 17:267,89391,469,97764,502,0001,007,0002,428,928
10Oct 8, 2024 17:178,69797,002,01170,177,0002,005,0002,424,832
11Oct 8, 2024 17:268,70498,781,52371,241,0001,003,0002,531,328
12Oct 8, 2024 17:178,70491,930,93771,241,0001,003,0002,428,928
13Oct 8, 2024 17:268,72794,641,38572,435,00002,531,328
14Oct 8, 2024 17:178,74698,439,31271,585,0001,008,0002,531,328
15Oct 8, 2024 17:269,158101,694,93374,010,0002,000,0002,428,928