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 listMay 20, 2024 13:04Nguyen Thanh VinhNguyen Thanh VinhScore: 93,374Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 20, 2024 13:0493,247847,395,145773,952,06602,248,704
2May 20, 2024 13:0493,327852,888,820774,610,72202,236,416
3May 20, 2024 13:0493,346834,533,662774,769,90002,240,512
4May 20, 2024 13:0493,374844,135,153775,007,45002,244,608
5May 20, 2024 13:0493,412841,915,254775,316,09402,379,776
6May 20, 2024 13:0493,413853,033,850775,325,45402,240,512