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 16:35GraceGraceScore: 8,182Success
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 16:358,13993,392,57866,543,0001,008,0002,273,280
2Jun 2, 2024 16:358,16995,089,13565,808,0001,994,0002,273,280
3Jun 2, 2024 16:358,17095,652,83065,818,0001,994,0002,396,160
4Jun 2, 2024 16:358,17096,366,92965,815,0001,994,0002,392,064
5Jun 2, 2024 16:358,17290,200,65166,814,0001,012,0002,404,352
6Jun 2, 2024 16:358,17599,454,73367,854,00002,404,352
7Jun 2, 2024 16:358,17591,762,04165,860,0001,995,0002,273,280
8Jun 2, 2024 16:358,18294,511,48765,911,0001,997,0002,404,352
9Jun 2, 2024 16:358,18291,128,13866,910,000998,0002,396,160
10Jun 2, 2024 16:358,18690,039,18166,946,000999,0002,400,256
11Jun 2, 2024 16:358,23990,005,69167,377,0001,005,0002,273,280
12Jun 2, 2024 16:358,25589,448,14267,506,0001,007,0002,273,280
13Jun 2, 2024 16:359,055140,296,44175,154,33602,289,664
14Jun 2, 2024 16:359,058140,832,95475,184,98702,281,472
15Jun 2, 2024 16:359,066140,017,85975,249,71802,277,376