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 14, 2024 10:33Matt StuchlikMatt StuchlikScore: 15,667Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 14, 2024 10:3315,154154,335,386123,781,0001,996,0002,285,568
2Apr 14, 2024 10:3315,593151,528,510128,419,0001,003,0002,277,376
3Apr 14, 2024 10:3315,596155,220,431128,446,0001,003,0002,285,568
4Apr 14, 2024 10:3315,657157,337,799127,950,0001,999,0002,285,568
5Apr 14, 2024 10:3315,660152,509,823128,976,000999,0002,531,328
6Apr 14, 2024 10:3315,664153,882,121128,010,0002,000,0002,265,088
7Apr 14, 2024 10:3315,667155,562,991129,038,0001,000,0002,285,568
8Apr 14, 2024 10:3315,691152,862,591128,230,0002,003,0002,265,088
9Apr 14, 2024 10:3315,697156,809,330128,280,0002,004,0002,277,376
10Apr 14, 2024 10:3321,161237,525,205175,638,25702,297,856
11Apr 14, 2024 10:3321,223245,123,303176,153,36702,285,568
12Apr 14, 2024 10:3321,463252,711,375178,144,82402,289,664