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 6, 2024 13:07matsuoka-601matsuoka-601Error
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 6, 2024 13:0900000Error: expected "53686315791944901 ", got "83852968469584965"
2Jun 6, 2024 15:0500000Error: expected "53689786757264340 ", got "53689784336834092"
3Jun 6, 2024 15:0400000Error: expected "53685558292038961 ", got "60573674768870347"
4Jun 6, 2024 15:0400000Error: expected "53692477702577339 ", got "53692475282147091"
5Jun 6, 2024 15:0300000Error: expected "53691885527653262 ", got "77095220008697971"
6Jun 6, 2024 15:0200000Error: expected "53688295739089975 ", got "53688293318659727"
7Jun 6, 2024 14:5100000Error: expected "53692629040295994 ", got "90287425256038057"
8Jun 6, 2024 14:5000000Error: expected "53689227398711263 ", got "54674976649467041"
9Jun 6, 2024 14:5000000Error: expected "53691821568335850 ", got "53691819147905602"
10Jun 6, 2024 13:0800000Error: expected "53693159912009870 ", got "53693157491579622"
11Jun 6, 2024 13:0800000Error: expected "53692229871839395 ", got "64213081568687467"
12Jun 6, 2024 13:0700000Error: expected "53691348434646339 ", got "53691346014216091"
13Jun 6, 2024 14:495,344117,025,86544,352,56902,240,512
14Jun 6, 2024 14:495,358113,249,43244,471,03402,252,800
15Jun 6, 2024 15:055,370106,208,63844,572,99402,240,512
16Jun 6, 2024 15:055,389117,226,74044,732,70402,244,608
17Jun 6, 2024 14:495,392112,898,83744,752,38802,240,512
18Jun 6, 2024 15:055,48197,848,19545,490,45502,244,608