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 13:52GraceGraceScore: 6,632Success
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 13:526,58282,457,22153,617,0001,011,0002,273,280
2Jun 2, 2024 13:526,60580,313,68652,825,0001,993,0002,273,280
3Jun 2, 2024 13:526,60784,043,29952,844,0001,994,0002,273,280
4Jun 2, 2024 13:526,62180,206,78652,955,0001,998,0002,273,280
5Jun 2, 2024 13:526,62481,750,62752,979,0001,999,0002,404,352
6Jun 2, 2024 13:526,63078,308,48355,032,00002,400,256
7Jun 2, 2024 13:526,63176,597,80153,035,0002,001,0002,400,256
8Jun 2, 2024 13:526,63276,740,59753,046,0002,001,0002,273,280
9Jun 2, 2024 13:526,63380,166,81354,057,0001,001,0002,392,064
10Jun 2, 2024 13:526,63479,538,09453,062,0002,002,0002,273,280
11Jun 2, 2024 13:526,64180,464,80854,116,0001,002,0002,404,352
12Jun 2, 2024 13:526,64584,755,53353,152,0002,005,0002,396,160
13Jun 2, 2024 13:527,968133,280,33366,137,79302,281,472
14Jun 2, 2024 13:527,974115,940,46966,180,07102,281,472
15Jun 2, 2024 13:528,001136,252,83766,412,03402,285,568