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 listDec 27, 2024 21:52Joad NacerJoad NacerError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 27, 2024 21:5200000Error: No answer to stdout. Died or killed?stderr
2Dec 27, 2024 21:524,24964,709,89733,252,0002,015,0002,301,952
3Dec 27, 2024 21:524,26958,414,32734,420,0001,012,0002,297,856
4Dec 27, 2024 21:524,28261,150,36334,524,0001,015,0002,535,424
5Dec 27, 2024 21:524,28360,106,53134,538,0001,015,0002,297,856
6Dec 27, 2024 21:524,28964,150,16235,600,00002,301,952
7Dec 27, 2024 21:524,31862,983,97933,851,0001,991,0002,392,064
8Dec 27, 2024 21:524,31960,744,95733,858,0001,991,0002,301,952
9Dec 27, 2024 21:524,32162,713,43933,871,0001,992,0002,531,328
10Dec 27, 2024 21:524,32656,507,62334,911,000997,0002,273,280
11Dec 27, 2024 21:524,33756,736,31134,995,000999,0002,531,328
12Dec 27, 2024 21:524,34256,249,36235,039,0001,001,0002,289,664
13Dec 27, 2024 21:524,37753,804,41834,308,0002,018,0002,293,760
14Dec 27, 2024 21:524,41468,560,86436,637,00002,265,088
15Dec 27, 2024 21:524,48664,896,60337,230,00002,269,184
16Dec 27, 2024 21:524,54061,107,70036,660,0001,018,0002,301,952