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 18, 2024 14:12Matt StuchlikMatt StuchlikScore: 10,409Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 18, 2024 14:1210,353107,615,30183,934,0001,998,0002,285,568
2Apr 18, 2024 14:1210,358108,926,00183,976,0001,999,0002,478,080
3Apr 18, 2024 14:1210,383111,071,22484,176,0002,004,0002,285,568
4Apr 18, 2024 14:1210,385110,194,08584,195,0002,004,0002,486,272
5Apr 18, 2024 14:1210,387114,600,57783,201,0003,007,0002,285,568
6Apr 18, 2024 14:1210,406113,644,10384,365,0002,008,0002,285,568
7Apr 18, 2024 14:1210,409108,541,06684,382,0002,009,0002,285,568
8Apr 18, 2024 14:1210,456113,258,92182,793,0003,990,0002,277,376
9Apr 18, 2024 14:1210,462116,101,24083,839,0002,994,0002,285,568
10Apr 18, 2024 14:1211,536174,039,26895,744,84002,232,320
11Apr 18, 2024 14:1211,537167,510,52695,757,78402,244,608
12Apr 18, 2024 14:1211,564172,782,88395,982,63802,240,512