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 listNov 19, 2022 20:46parastromparastromScore: 345,280Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 19, 2022 17:45338,4132,876,777,3262,808,831,21002,187,264
2Nov 19, 2022 17:45338,8992,872,136,6052,812,863,62302,187,264
3Nov 19, 2022 17:45343,9102,913,108,5922,854,449,37202,310,144
4Nov 19, 2022 20:46345,2802,919,518,5142,865,824,11302,187,264
5Nov 19, 2022 20:46345,6322,930,790,7162,868,748,35702,256,896
6Nov 19, 2022 20:46350,6432,970,972,3762,910,339,39402,187,264