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 8, 2023 10:49Robert BurkeRobert BurkeScore: 7,683Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 8, 2023 10:497,63488,434,19763,365,00002,277,376
2Nov 8, 2023 10:497,64986,150,41463,486,00002,428,928
3Nov 8, 2023 10:497,65583,848,15663,533,00002,277,376
4Nov 8, 2023 10:497,66194,012,08363,586,00002,277,376
5Nov 8, 2023 10:497,66298,166,93863,592,00002,539,520
6Nov 8, 2023 10:497,66788,259,23063,633,00002,277,376
7Nov 8, 2023 10:497,66995,546,67763,656,00002,277,376
8Nov 8, 2023 10:497,68388,720,21061,775,0001,992,0002,277,376
9Nov 8, 2023 10:497,68797,696,34862,802,000996,0002,539,520
10Nov 8, 2023 10:497,69491,165,06362,861,000997,0002,277,376
11Nov 8, 2023 10:497,70087,346,70862,912,000998,0002,277,376
12Nov 8, 2023 10:497,750133,344,02364,322,41302,179,072
13Nov 8, 2023 10:497,755127,508,63364,370,35002,256,896
14Nov 8, 2023 10:497,784126,910,07664,611,05502,297,856
15Nov 8, 2023 10:497,80390,551,94663,766,000996,0002,277,376