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 listApr 16, 2024 15:40Matt StuchlikMatt StuchlikScore: 12,307Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 16, 2024 15:4011,904124,433,56097,803,000997,0002,527,232
2Apr 16, 2024 15:4012,009162,441,95499,676,14102,281,472
3Apr 16, 2024 15:4012,051159,735,009100,020,06202,273,280
4Apr 16, 2024 15:4012,142157,099,701100,782,46702,281,472
5Apr 16, 2024 15:4012,288128,085,78699,990,0001,999,0002,269,184
6Apr 16, 2024 15:4012,303125,397,226101,113,0001,001,0002,285,568
7Apr 16, 2024 15:4012,307123,594,380100,147,0002,002,0002,260,992
8Apr 16, 2024 15:4012,310126,239,235100,167,0002,003,0002,531,328
9Apr 16, 2024 15:4012,312128,296,509100,187,0002,003,0002,260,992
10Apr 16, 2024 15:4012,317125,482,855100,223,0002,004,0002,285,568
11Apr 16, 2024 15:4012,349125,150,938101,493,0001,004,0002,285,568
12Apr 16, 2024 15:4012,359131,679,638101,574,0001,005,0002,285,568