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 17:04AnSaAnSaScore: 55,975Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 25, 2024 17:0455,306496,551,564459,040,19202,277,376
2Jan 25, 2024 17:0455,330511,564,405459,238,90302,289,664
3Jan 25, 2024 17:0455,352525,440,890459,424,11302,281,472
4Jan 25, 2024 17:0455,975520,584,880464,588,99702,260,992
5Jan 25, 2024 17:0456,014505,820,929464,912,28402,260,992
6Jan 25, 2024 17:0456,023532,939,662464,994,06002,256,896