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 listJul 20, 2023 20:34gchebanovgchebanovScore: 8,352Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 20, 2023 20:347,75884,240,62263,387,0001,006,0002,400,256
2Jul 20, 2023 20:347,76883,420,63563,471,0001,007,0002,465,792
3Jul 20, 2023 20:347,77589,172,51162,551,0001,985,0002,392,064
4Jul 20, 2023 20:348,24991,451,83468,465,00002,465,792
5Jul 20, 2023 20:348,26595,454,75068,602,00002,461,696
6Jul 20, 2023 20:348,30392,952,94265,922,0002,996,0002,379,776
7Jul 20, 2023 20:348,33997,754,84667,209,0002,006,0002,445,312
8Jul 20, 2023 20:348,35296,579,90267,312,0002,009,0002,367,488
9Jul 20, 2023 20:348,35899,191,48068,366,0001,005,0002,387,968
10Jul 20, 2023 20:348,382102,289,02869,567,00002,375,680
11Jul 20, 2023 20:348,412102,168,18767,827,0001,994,0002,465,792
12Jul 20, 2023 20:348,43595,047,71368,013,0002,000,0002,465,792
13Jul 20, 2023 20:348,616135,868,15071,511,37502,273,280
14Jul 20, 2023 20:348,625136,067,25271,584,07902,248,704
15Jul 20, 2023 20:348,661134,539,79371,888,43302,273,280