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 7, 2024 11:35GraceGraceScore: 44,386Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 7, 2024 11:3544,087431,483,549365,926,24802,236,416
2Jun 7, 2024 11:3444,104425,146,109366,065,48102,236,416
3Jun 7, 2024 11:3544,111423,625,011366,117,18102,244,608
4Jun 7, 2024 11:3444,130424,288,556366,278,60602,244,608
5Jun 7, 2024 11:3444,180440,291,240366,694,94902,244,608
6Jun 7, 2024 11:3544,275431,463,112367,478,83602,240,512
7Jun 7, 2024 11:3544,386429,795,843368,402,31002,240,512
8Jun 7, 2024 11:3444,388425,028,041368,416,89602,244,608
9Jun 7, 2024 11:3444,402422,624,773368,539,78002,244,608
10Jun 7, 2024 11:3544,415422,050,918368,640,97802,244,608
11Jun 7, 2024 11:3544,420432,893,356368,684,86102,244,608
12Jun 7, 2024 11:3445,310442,821,381376,073,52202,244,608