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 listJan 4, 2023 01:54UdbhavUdbhavScore: 39,708Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 4, 2023 01:5439,241388,351,681325,701,36202,220,032
2Jan 4, 2023 01:5239,653390,740,300329,118,55602,215,936
3Jan 4, 2023 01:5239,704402,663,693329,543,85002,220,032
4Jan 4, 2023 01:5439,708383,240,433329,579,58102,224,128
5Jan 4, 2023 01:5239,733399,237,146329,785,25802,228,224
6Jan 4, 2023 01:5439,733402,850,268329,787,64802,228,224