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 6, 2023 03:09sliceteamsliceteamScore: 8,333Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 6, 2023 03:098,30191,561,98166,902,0001,997,0002,273,280
2Nov 6, 2023 03:098,30894,032,19867,958,000999,0002,273,280
3Nov 6, 2023 03:098,30898,596,27167,957,000999,0002,392,064
4Nov 6, 2023 03:098,30993,584,54566,963,0001,998,0002,404,352
5Nov 6, 2023 03:098,32089,344,84367,059,0002,001,0002,273,280
6Nov 6, 2023 03:098,33193,713,26067,140,0002,004,0002,273,280
7Nov 6, 2023 03:098,33293,592,56468,152,0001,002,0002,273,280
8Nov 6, 2023 03:098,33393,695,44167,163,0002,004,0002,396,160
9Nov 6, 2023 03:098,37791,270,44268,522,0001,007,0002,273,280
10Nov 6, 2023 03:098,46192,574,80669,225,0001,003,0002,400,256
11Nov 6, 2023 03:098,49196,676,81570,475,00002,396,160
12Nov 6, 2023 03:098,737102,529,03171,511,0001,007,0002,400,256
13Nov 6, 2023 03:098,854136,303,22073,490,29302,289,664
14Nov 6, 2023 03:099,043141,117,23275,055,70402,281,472
15Nov 6, 2023 03:099,146140,277,28475,910,68702,277,376