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 25, 2024 18:41AnSaAnSaScore: 58,819Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 26, 2024 04:5946,443447,880,568385,478,03702,281,472
2Jan 26, 2024 04:5946,587453,634,800386,670,37002,265,088
3Jan 26, 2024 04:5946,869464,947,630389,014,99102,265,088
4Jan 25, 2024 18:4158,819543,745,666488,200,45702,285,568
5Jan 25, 2024 18:4158,832560,361,331488,303,32902,285,568
6Jan 25, 2024 18:4158,841567,197,834488,376,28402,289,664