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 5, 2023 23:50sliceteamsliceteamScore: 8,109Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 5, 2023 23:508,08389,766,07866,086,0001,001,0002,404,352
2Nov 5, 2023 23:508,08388,186,44865,090,0002,002,0002,392,064
3Nov 5, 2023 23:508,09089,851,97765,143,0002,004,0002,400,256
4Nov 5, 2023 23:508,09688,731,60166,195,0001,002,0002,273,280
5Nov 5, 2023 23:508,10591,594,78066,267,0001,004,0002,392,064
6Nov 5, 2023 23:508,10688,642,19966,278,0001,004,0002,273,280
7Nov 5, 2023 23:508,107101,525,27366,286,0001,004,0002,273,280
8Nov 5, 2023 23:508,10992,521,80967,307,00002,273,280
9Nov 5, 2023 23:508,11093,141,66567,313,00002,273,280
10Nov 5, 2023 23:508,19091,008,24465,981,0001,999,0002,277,376
11Nov 5, 2023 23:508,19794,257,67467,032,0001,000,0002,387,968
12Nov 5, 2023 23:508,270103,526,95367,628,0001,009,0002,273,280
13Nov 5, 2023 23:508,607132,631,21471,442,07802,281,472
14Nov 5, 2023 23:508,761142,161,65072,720,23002,289,664
15Nov 5, 2023 23:508,947151,020,28674,260,12002,273,280