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 14:48matsuoka-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 14:5300000Error: expected "53682486967344842 ", got "65728312819112134"stderr
2Jun 6, 2024 14:5400000Error: expected "53690206051897044 ", got "53690203631466796"stderr
3Jun 6, 2024 14:4822,399255,026,325185,914,25502,269,184
4Jun 6, 2024 14:4822,446249,460,948186,302,86002,256,896
5Jun 6, 2024 14:5322,476246,117,695186,550,41402,244,608
6Jun 6, 2024 14:4822,510258,418,039186,832,51902,248,704
7Jun 6, 2024 14:5322,581260,217,928187,423,32402,248,704
8Jun 6, 2024 14:4822,632245,932,251187,846,91102,256,896
9Jun 6, 2024 14:4822,737244,540,063188,719,59802,256,896
10Jun 6, 2024 14:5322,749250,316,450188,820,24102,252,800
11Jun 6, 2024 14:4822,816257,903,424189,373,18002,256,896
12Jun 6, 2024 14:4823,150247,808,871192,145,26102,248,704
13Jun 6, 2024 14:4823,248263,474,813192,956,70502,248,704
14Jun 6, 2024 14:4823,284249,165,113193,260,10802,252,800