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 14:33Matt 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 14:4700000Error: Exit with code 1: Segmentation fault at address: 378164751872stderr
2Jun 5, 2024 14:4200000Error: expected "53691246805895665 ", got "53691259327730331 "
3Jun 5, 2024 14:4000000Error: Exit with code 1: Segmentation fault at address: 189174735296stderr
4Jun 5, 2024 14:4000000Error: expected "53689930684337301 ", got "53689941814717984 "
5Jun 5, 2024 14:3900000Error: expected "53691324649941266 ", got "53691349462680031 "
6Jun 5, 2024 14:3900000Error: Exit with code 1: Segmentation fault at address: 378349334976stderr
7Jun 5, 2024 14:3600000Error: Exit with code 1: Segmentation fault at address: 378349334976stderr
8Jun 5, 2024 14:3400000Error: expected "53690841185769129 ", got "53690873066008251 "
9Jun 5, 2024 14:3400000Error: Exit with code 1: Segmentation fault at address: 53155990592stderr
10Jun 5, 2024 14:4200000Error: expected "53683901872487271 ", got "53684290835849356 "
11Jun 5, 2024 14:4200000Error: Exit with code 1: Segmentation fault at address: 378349335040stderr
12Jun 5, 2024 14:4200000Error: expected "53680858382786044 ", got "53680905680345159 "
13Jun 5, 2024 14:4300000Error: expected "53688780295957310 ", got "53688793814388397 "
14Jun 5, 2024 14:4300000Error: expected "53691083196688375 ", got "53691094327069058 "
15Jun 5, 2024 14:4600000Error: expected "53691999715742390 ", got "53692179173788590 "
16Jun 5, 2024 14:4600000Error: expected "53689704916486378 ", got "53689740238557045 "
17Jun 5, 2024 14:4500000Error: expected "53682507788420206 ", got "53682543110490873 "
18Jun 5, 2024 14:4400000Error: expected "53688239850320253 ", got "53688271730559375 "
19Jun 5, 2024 14:4400000Error: expected "53689710295378019 ", got "53689723813809106 "
20Jun 5, 2024 14:4400000Error: expected "53679890529758558 ", got "53679973614243787 "
21Jun 5, 2024 14:4300000Error: Exit with code 1: Segmentation fault at address: 401602601472stderr
22Jun 5, 2024 14:425,213109,510,29743,270,77402,297,856
23Jun 5, 2024 14:415,215104,849,85443,283,57002,441,216
24Jun 5, 2024 14:445,217122,974,29243,298,47102,179,072
25Jun 5, 2024 14:375,226114,677,74143,372,33402,293,760
26Jun 5, 2024 14:425,239104,607,18643,482,01702,273,280
27Jun 5, 2024 14:475,243109,515,24143,518,63702,293,760
28Jun 5, 2024 14:335,244101,924,67043,522,16102,281,472
29Jun 5, 2024 14:445,265108,275,77243,696,49902,396,160
30Jun 5, 2024 14:375,267116,359,90543,720,24802,289,664
31Jun 5, 2024 14:415,298115,122,49643,972,41902,281,472
32Jun 5, 2024 14:475,299117,172,33343,979,39002,183,168
33Jun 5, 2024 14:375,304106,231,64744,022,85702,301,952
34Jun 5, 2024 14:335,307108,826,45244,051,94602,428,928
35Jun 5, 2024 14:475,313101,337,61844,098,08402,174,976
36Jun 5, 2024 14:355,313121,843,53344,095,73002,281,472
37Jun 5, 2024 14:415,316111,722,10244,122,12902,301,952
38Jun 5, 2024 14:445,320115,264,76544,155,52702,306,048
39Jun 5, 2024 14:415,325100,820,32544,199,24202,277,376
40Jun 5, 2024 14:355,327125,395,12044,211,73702,289,664
41Jun 5, 2024 14:355,328111,853,32244,221,50902,273,280
42Jun 5, 2024 14:335,334120,064,86244,273,53802,265,088
43Jun 5, 2024 14:415,335108,454,94344,283,61502,301,952
44Jun 5, 2024 14:415,352122,431,15344,418,04302,273,280
45Jun 5, 2024 14:425,380120,052,42344,651,49902,297,856