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 listJun 6, 2024 15:29matsuoka-601matsuoka-601Error
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 6, 2024 15:3000000Error: expected "53689669684749346 ", got "94975104300458866"stderr
2Jun 6, 2024 15:2700000Error: expected "53690017984581445 ", got "53690015564151197"stderr
3Jun 6, 2024 15:2921,273242,337,758176,563,43402,232,320
4Jun 6, 2024 15:2921,327241,649,179177,014,44802,240,512
5Jun 6, 2024 15:2821,337242,622,822177,100,63702,240,512
6Jun 6, 2024 15:2921,429233,896,291177,864,14102,240,512
7Jun 6, 2024 15:2921,453235,570,879178,062,90902,236,416
8Jun 6, 2024 15:2821,539249,218,992178,773,39002,244,608
9Jun 6, 2024 15:2921,629208,614,314178,515,0001,002,0002,478,080
10Jun 6, 2024 15:2921,650204,740,520178,698,000998,0002,535,424
11Jun 6, 2024 15:2921,650206,532,924178,698,000998,0002,478,080
12Jun 6, 2024 15:2921,671202,533,543177,870,0001,998,0002,277,376
13Jun 6, 2024 15:2921,800202,511,559178,945,0001,999,0002,273,280
14Jun 6, 2024 15:2822,103248,421,442183,451,66602,236,416
15Jun 6, 2024 15:2922,216245,645,167184,395,42902,228,224
16Jun 6, 2024 15:2922,250222,938,265183,681,000998,0002,269,184
17Jun 6, 2024 15:2922,259249,476,484184,747,04802,248,704
18Jun 6, 2024 15:2922,528211,053,418185,982,000999,0002,273,280
19Jun 6, 2024 15:2922,736212,144,627186,713,0001,996,0002,482,176
20Jun 6, 2024 15:2922,801220,313,036189,246,00002,273,280