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 listAug 4, 2023 10:51sadfunsadfunError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 4, 2023 10:4400000Error: expected "53683140035534872 ", got "2132440510 "
2Aug 4, 2023 10:4300000Error: expected "53682861862720852 ", got "558790472 "
3Aug 4, 2023 10:4200000Error: expected "53685039040629593 ", got "436608709 "
4Aug 4, 2023 11:0060,769568,406,284504,384,36202,244,608
5Aug 4, 2023 11:0060,772573,287,976504,410,96502,256,896
6Aug 4, 2023 10:5860,810562,278,689504,719,03902,252,800
7Aug 4, 2023 11:0060,811567,829,100504,730,39902,256,896
8Aug 4, 2023 10:5960,840559,035,276504,974,41102,248,704
9Aug 4, 2023 10:5960,846556,326,009505,020,24302,252,800
10Aug 4, 2023 10:5960,849567,753,383505,049,71502,252,800
11Aug 4, 2023 10:5860,850570,982,615505,051,45702,248,704
12Aug 4, 2023 10:5960,866565,985,936505,188,93402,248,704
13Aug 4, 2023 10:5960,873561,926,871505,246,81102,248,704
14Aug 4, 2023 10:5960,875574,820,392505,260,98302,248,704
15Aug 4, 2023 10:5860,907570,687,770505,529,33002,252,800
16Aug 4, 2023 10:5165,467608,758,777543,379,07602,248,704
17Aug 4, 2023 10:4565,472601,925,792543,421,39902,240,512
18Aug 4, 2023 10:4565,478602,135,058543,467,39602,256,896
19Aug 4, 2023 10:5165,486614,869,351543,536,35702,256,896
20Aug 4, 2023 10:5165,499609,165,619543,644,77202,252,800
21Aug 4, 2023 10:4565,501643,706,608543,658,39502,252,800