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 11:58AnSaAnSaScore: 47,349Success
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 11:5747,285473,170,943392,469,55402,281,472
2Jan 25, 2024 11:5747,305466,366,046392,635,61202,281,472
3Jan 25, 2024 11:5847,334456,058,969392,869,94702,281,472
4Jan 25, 2024 11:5747,349456,970,589392,996,00502,277,376
5Jan 25, 2024 11:5847,381453,208,901393,262,89802,289,664
6Jan 25, 2024 11:5847,442447,910,597393,772,05602,289,664