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 31, 2024 14:36GraceGraceError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 31, 2024 14:3600000Error: expected "53683150901704873 ", got "53683150246344873 "
2May 31, 2024 14:365,20867,821,06642,221,0001,005,0002,273,280
3May 31, 2024 14:365,21562,792,25642,279,0001,006,0002,273,280
4May 31, 2024 14:365,21664,163,52843,289,00002,273,280
5May 31, 2024 14:365,22471,294,30342,349,0001,008,0002,273,280
6May 31, 2024 14:365,22868,618,99642,382,0001,009,0002,273,280
7May 31, 2024 14:365,22866,797,45543,390,00002,273,280
8May 31, 2024 14:365,23665,050,15742,445,0001,010,0002,408,448
9May 31, 2024 14:365,23867,979,53342,462,0001,011,0002,400,256
10May 31, 2024 14:365,24468,954,93343,526,00002,273,280
11May 31, 2024 14:365,31368,449,46742,094,0002,004,0002,408,448
12May 31, 2024 14:365,31667,864,80244,125,00002,400,256
13May 31, 2024 14:365,32175,065,46543,161,0001,003,0002,400,256
14May 31, 2024 14:375,424107,756,30045,021,68102,281,472
15May 31, 2024 14:365,424108,725,55745,018,51702,281,472
16May 31, 2024 14:365,427104,309,01945,042,71202,289,664
17May 31, 2024 14:375,427110,189,08745,045,87902,285,568
18May 31, 2024 14:365,43097,700,62345,073,04002,281,472
19May 31, 2024 14:365,441103,288,97545,160,14802,285,568
20May 31, 2024 14:375,444109,520,33845,187,08202,281,472
21May 31, 2024 14:365,452118,743,53045,254,32802,281,472
22May 31, 2024 14:365,476107,499,45045,449,28102,289,664
23May 31, 2024 14:365,479104,892,50745,473,99302,285,568
24May 31, 2024 14:365,484118,928,89745,519,31802,289,664
25May 31, 2024 14:365,537125,534,73445,958,26002,289,664