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 listOct 15, 2024 14:24Serge SmirnovSerge SmirnovError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 15, 2024 14:1500000Error: expected "53689832131900384 ", got "53689829571900384 "stderr
2Oct 15, 2024 14:1531,027281,812,787256,521,0001,002,0002,523,136
3Oct 15, 2024 14:2031,035287,941,196256,592,0001,002,0002,519,040
4Oct 15, 2024 14:2031,037286,427,526257,610,00002,289,664
5Oct 15, 2024 14:2431,039282,832,589256,623,0001,002,0002,285,568
6Oct 15, 2024 14:1531,045283,779,515256,674,000998,0002,285,568
7Oct 15, 2024 14:2031,045284,528,220256,672,000998,0002,519,040
8Oct 15, 2024 14:1531,053283,399,947255,744,0001,998,0002,277,376
9Oct 15, 2024 14:1531,056291,246,359255,763,0001,998,0002,527,232
10Oct 15, 2024 14:2031,057287,153,368255,773,0001,998,0002,285,568
11Oct 17, 2024 00:0831,057284,447,263255,778,0001,998,0002,285,568
12Oct 15, 2024 14:2031,061280,595,757256,811,000999,0002,519,040
13Oct 15, 2024 14:2031,069284,234,666256,871,000999,0002,285,568
14Oct 15, 2024 14:2031,069285,943,922255,873,0001,999,0002,285,568
15Oct 15, 2024 14:1531,077284,611,335256,936,000999,0002,285,568
16Oct 17, 2024 00:0831,077284,559,140255,942,0001,999,0002,285,568
17Oct 15, 2024 14:1531,080290,108,485255,963,0001,999,0002,531,328
18Oct 15, 2024 14:1531,081284,025,442256,973,000999,0002,531,328
19Oct 15, 2024 14:2431,081281,567,994255,976,0001,999,0002,285,568
20Oct 15, 2024 14:2031,083281,448,527255,994,0001,999,0002,527,232
21Oct 15, 2024 14:2431,085280,534,184257,003,0001,000,0002,519,040
22Oct 15, 2024 14:2032,528295,832,284267,985,0001,999,0002,285,568
23Oct 15, 2024 14:1532,563301,942,262268,275,0002,002,0002,285,568
24Oct 17, 2024 00:0832,567295,231,879269,305,0001,001,0002,273,280
25Oct 15, 2024 14:1532,568292,923,951269,317,0001,001,0002,285,568