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 20, 2024 21:03gordgordScore: 240,788Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 20, 2024 21:09240,1822,018,656,9451,923,527,00069,982,0002,289,664
2Oct 20, 2024 21:09240,2452,018,918,8361,931,063,00062,969,0002,523,136
3Oct 20, 2024 21:09240,2922,016,952,8761,920,446,00073,978,0002,289,664
4Oct 20, 2024 21:03240,3972,022,575,1791,920,324,00074,973,0002,265,088
5Oct 20, 2024 21:03240,4562,021,237,9361,935,824,00059,963,0002,281,472
6Oct 20, 2024 21:09240,4922,017,579,1521,914,122,00081,962,0002,371,584
7Oct 20, 2024 21:03240,5632,028,288,9771,931,681,00064,989,0002,289,664
8Oct 20, 2024 21:09240,5882,032,916,8081,923,921,00072,959,0002,281,472
9Oct 20, 2024 21:03240,7872,021,437,0221,925,548,00072,982,0002,289,664
10Oct 20, 2024 21:09240,7882,031,302,9041,932,556,00065,984,0002,285,568
11Oct 20, 2024 21:09240,8112,028,632,8811,948,767,00049,968,0002,285,568
12Oct 20, 2024 21:03240,9452,026,057,4461,888,907,000110,935,0002,277,376
13Oct 20, 2024 21:03240,9592,024,962,3131,903,012,00096,949,0002,281,472
14Oct 20, 2024 21:03240,9852,023,642,5591,887,224,000112,953,0002,281,472
15Oct 20, 2024 21:09240,9982,021,588,8351,876,326,000123,955,0002,269,184
16Oct 20, 2024 21:09241,0052,030,286,2691,895,374,000104,965,0002,273,280
17Oct 20, 2024 21:03241,2292,029,412,5621,941,225,00060,975,0002,289,664
18Oct 20, 2024 21:03242,1972,038,353,0311,951,259,00058,977,0002,289,664