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 17:43GraceGraceScore: 79,619Success
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 17:4379,252708,788,166657,789,45102,273,280
2Jun 7, 2024 17:4279,336719,177,810658,491,47802,269,184
3Jun 7, 2024 17:4379,341719,053,134658,530,03302,248,704
4Jun 7, 2024 17:4379,480735,853,996659,685,02202,277,376
5Jun 7, 2024 17:4379,531731,449,225660,107,96502,269,184
6Jun 7, 2024 17:4379,613722,621,490660,787,59802,273,280
7Jun 7, 2024 17:4379,619719,704,609660,837,27702,273,280
8Jun 7, 2024 17:4279,625725,058,383660,883,55702,273,280
9Jun 7, 2024 17:4379,669723,265,209661,256,84702,277,376
10Jun 7, 2024 17:4379,696737,783,804661,473,79702,244,608
11Jun 7, 2024 17:4279,786727,125,920662,224,06802,273,280
12Jun 7, 2024 17:4380,567732,354,675668,704,36602,396,160