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 14, 2024 02:41zielajzielajScore: 10,247Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 14, 2024 02:419,396104,607,44775,988,0001,999,0002,367,488
2Nov 14, 2024 02:419,399105,937,07174,008,0004,000,0002,510,848
3Nov 14, 2024 02:419,456100,459,30676,469,0002,012,0002,363,392
4Nov 14, 2024 02:4110,247109,388,33383,047,0002,001,0002,314,240
5Nov 14, 2024 02:4110,318114,600,48279,595,0006,045,0002,318,336
6Nov 14, 2024 02:4110,526111,269,60684,350,0003,012,0002,314,240