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 listDec 5, 2024 11:26Yingxin JiangYingxin JiangScore: 1,880,355Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 5, 2024 11:261,879,86015,646,982,45115,251,977,000350,861,0002,486,272
2Dec 5, 2024 11:261,880,35515,656,893,32615,263,084,000343,866,0002,289,664
3Dec 5, 2024 11:261,889,06515,721,512,39215,342,472,000336,768,0002,441,216