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 listJul 19, 2022 12:32Yuriy LyfenkoYuriy LyfenkoError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 19, 2022 12:3300000Error: expected "53683681266293016 ", got "7497202898911288 "
2Jul 19, 2022 12:3300000Error: expected "53690623025756625 ", got "4684193375257057 "
3Jul 19, 2022 12:3226,578285,414,412220,596,68802,244,608
4Jul 19, 2022 12:3226,599293,166,634220,769,65202,236,416
5Jul 19, 2022 12:3226,730288,903,730221,861,45602,240,512
6Jul 19, 2022 12:3229,131265,840,637240,791,000999,0002,498,560
7Jul 19, 2022 12:3229,141265,259,683239,876,0001,998,0002,498,560
8Jul 19, 2022 12:3229,143264,551,174239,887,0001,999,0002,334,720
9Jul 19, 2022 12:3229,145266,527,360240,903,000999,0002,265,088
10Jul 19, 2022 12:3229,155264,787,604239,985,0001,999,0002,265,088
11Jul 19, 2022 12:3229,160268,180,294240,032,0002,000,0002,498,560
12Jul 19, 2022 12:3229,162269,205,591240,042,0002,000,0002,523,136
13Jul 19, 2022 12:3229,166265,233,981240,075,0002,000,0002,273,280
14Jul 19, 2022 12:3229,187264,741,045240,246,0002,002,0002,277,376