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 listMay 27, 2024 21:13Matt 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
1May 27, 2024 21:1600000Error: expected "53691897491582550 ", got "53691945716323005 "
2May 27, 2024 21:2800000Error: expected "53689848169983403 ", got "53689880050222525 "
3May 27, 2024 21:2700000Error: expected "53681183092350081 ", got "53681199690864836 "
4May 27, 2024 21:2600000Error: Exit with code 1: Segmentation fault at address: 2416181376stderr
5May 27, 2024 21:2400000Error: Exit with code 1: Segmentation fault at address: 570490944stderr
6May 27, 2024 21:2300000Error: expected "53683511312541488 ", got "53683555448107372 "
7May 27, 2024 21:2200000Error: expected "53683173770060548 ", got "53683184900441231 "
8May 27, 2024 21:2000000Error: expected "53679406733028034 ", got "53679417863408717 "
9May 27, 2024 21:1900000Error: expected "53691509745694806 ", got "53691528052277451 "
10May 27, 2024 21:1800000Error: expected "53689996798628548 ", got "53690003798805784 "
11May 27, 2024 21:1700000Error: Exit with code 1: Segmentation fault at address: 570490944stderr
12May 27, 2024 21:1400000Error: Exit with code 1: Segmentation fault at address: 17833988stderr
13May 27, 2024 21:1300000Error: expected "53688669854030808 ", got "53688683372461895 "
14May 27, 2024 21:296,170123,032,97651,208,03002,203,648
15May 27, 2024 21:156,183116,271,39551,317,15502,220,032
16May 27, 2024 21:296,228125,143,97351,693,26002,187,264
17May 27, 2024 21:216,289116,809,61852,196,85002,199,552
18May 27, 2024 21:156,329110,408,28752,533,11102,473,984
19May 27, 2024 21:156,345117,785,42452,667,10402,183,168
20May 27, 2024 21:296,359113,697,93452,781,24702,195,456
21May 27, 2024 21:216,361124,246,23352,792,79602,203,648
22May 27, 2024 21:216,377124,281,61552,926,32102,269,184