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 10, 2024 19:15Alexander KosachevAlexander KosachevScore: 944,836Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 10, 2024 19:15942,2357,851,859,6287,747,610,00072,939,0002,314,240
2Nov 10, 2024 19:15944,8367,875,274,4067,768,186,00073,954,0002,281,472
3Nov 10, 2024 19:15953,3577,946,568,0927,840,907,00071,953,0002,314,240