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 5, 2024 12:06Matt StuchlikMatt StuchlikError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 5, 2024 12:1000000Error: expected "53680857651932952 ", got "53680879509785381 "
2Jun 5, 2024 12:1700000Error: Exit with code 1: Segmentation fault at address: 53155990592stderr
3Jun 5, 2024 12:1700000Error: expected "53686844384359459 ", got "53686818784359459 "
4Jun 5, 2024 12:1600000Error: expected "53682708871106068 ", got "53682733852320562 "
5Jun 5, 2024 12:1600000Error: expected "53690109445335469 ", got "53690300811461240 "
6Jun 5, 2024 12:1600000Error: expected "53692582571824111 ", got "53692646806944876 "
7Jun 5, 2024 12:1500000Error: expected "53690143825747946 ", got "53690164156144416 "
8Jun 5, 2024 12:1500000Error: expected "53689596456861021 ", got "53689607587241704 "
9Jun 5, 2024 12:1400000Error: expected "53693114372300284 ", got "53693186568061016 "
10Jun 5, 2024 12:1400000Error: expected "53683654111397161 ", got "53683712751888532 "
11Jun 5, 2024 12:1300000Error: Exit with code 1: Segmentation fault at address: 378349334976stderr
12Jun 5, 2024 12:1200000Error: expected "53689415598466450 ", got "53689433368862920 "
13Jun 5, 2024 12:1100000Error: expected "53690007466345254 ", got "53690027252724384 "
14Jun 5, 2024 12:1100000Error: Exit with code 1: Segmentation fault at address: 23636740992stderr
15Jun 5, 2024 12:1000000Error: expected "53691638885029115 ", got "53691650775323861 "
16Jun 5, 2024 12:1000000Error: Exit with code 1: Segmentation fault at address: 189174735296stderr
17Jun 5, 2024 12:0900000Error: expected "53688312712092523 ", got "53688394258225486 "
18Jun 5, 2024 12:0900000Error: expected "53688739824445233 ", got "53688771704684355 "
19Jun 5, 2024 12:0800000Error: expected "53683302203173366 ", got "53683303110951168 "
20Jun 5, 2024 12:0800000Error: Exit with code 1: Segmentation fault at address: 53155990592stderr
21Jun 5, 2024 12:0800000Error: expected "53691304834178483 ", got "53691302274178483 "
22Jun 5, 2024 12:0700000Error: expected "53686085888851223 ", got "53686149528236460 "
23Jun 5, 2024 12:0700000Error: Exit with code 1: Segmentation fault at address: 401602601472stderr
24Jun 5, 2024 12:0600000Error: expected "53681328913700768 ", got "53681751780535263 "
25Jun 5, 2024 12:115,444113,834,22945,187,63002,179,072
26Jun 5, 2024 12:115,50396,527,81545,674,11302,433,024
27Jun 5, 2024 12:115,519118,329,49145,806,22702,174,976
28Jun 5, 2024 12:185,545108,825,88646,025,64702,281,472
29Jun 5, 2024 12:185,556112,971,87246,115,24202,293,760
30Jun 5, 2024 12:185,572105,275,20346,244,95402,285,568