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 listApr 27, 2024 15:09Joad NacerJoad NacerScore: 13,955Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 27, 2024 15:0913,441183,169,729111,563,15102,277,376
2Apr 27, 2024 12:4413,466176,456,908111,765,15202,273,280
3Apr 27, 2024 12:4413,651178,231,003113,305,05302,277,376
4Apr 27, 2024 15:0913,827184,282,764114,765,42302,273,280
5Apr 27, 2024 12:4413,937142,625,131115,681,00002,510,848
6Apr 27, 2024 15:0913,945142,967,182114,745,000997,0002,265,088
7Apr 27, 2024 15:0913,950145,230,665114,791,000998,0002,285,568
8Apr 27, 2024 15:0913,951145,402,180113,797,0001,996,0002,527,232
9Apr 27, 2024 15:0913,951142,040,100113,800,0001,996,0002,265,088
10Apr 27, 2024 12:4413,953141,553,738113,811,0001,996,0002,285,568
11Apr 27, 2024 12:4413,954144,442,766113,822,0001,996,0002,285,568
12Apr 27, 2024 12:4413,954143,424,827113,819,0001,996,0002,285,568
13Apr 27, 2024 12:4413,955142,195,907113,829,0001,997,0002,265,088
14Apr 27, 2024 15:0913,957139,934,826113,843,0001,997,0002,260,992
15Apr 27, 2024 12:4413,963142,590,793113,896,0001,998,0002,285,568
16Apr 27, 2024 15:0913,970140,553,884113,954,0001,999,0002,281,472
17Apr 27, 2024 12:4413,979139,775,684114,023,0002,000,0002,285,568
18Apr 27, 2024 15:0913,999140,361,361114,187,0002,003,0002,510,848
19Apr 27, 2024 12:4414,094179,974,009116,983,84602,285,568
20Apr 27, 2024 12:4414,114140,637,063115,141,0002,002,0002,519,040
21Apr 27, 2024 15:0914,123180,463,608117,222,99402,285,568
22Apr 27, 2024 12:4414,126141,445,608115,245,0002,004,0002,285,568
23Apr 27, 2024 15:0914,736145,180,841120,307,0002,005,0002,285,568
24Apr 27, 2024 15:0915,014153,012,814123,611,0001,004,0002,260,992