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 listJun 6, 2024 15:07matsuoka-601matsuoka-601Error
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 6, 2024 15:0800000Error: expected "53691318303431147 ", got "53691403591778291"
2Jun 6, 2024 15:0800000Error: expected "53688094876944726 ", got "53688156047655233"
3Jun 6, 2024 15:0900000Error: expected "53689872870004646 ", got "53689870477736958"
4Jun 6, 2024 15:087,793127,312,43264,685,48602,240,512
5Jun 6, 2024 15:087,800127,759,49364,742,34602,252,800
6Jun 6, 2024 15:077,804125,876,20364,776,91702,240,512
7Jun 6, 2024 15:077,820135,652,01064,906,41102,236,416
8Jun 6, 2024 15:087,829122,186,49964,982,82902,244,608
9Jun 6, 2024 15:077,830136,696,51864,992,81602,244,608