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 listFeb 11, 2024 08:15CuteSocksCuteSocksScore: 19,929Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 11, 2024 08:1519,703221,240,357163,536,48102,355,200
2Feb 11, 2024 08:1519,716230,467,777163,645,71702,228,224
3Feb 11, 2024 08:1519,742231,240,181163,859,39702,236,416
4Feb 11, 2024 08:1519,832189,191,162162,595,0002,007,0002,519,040
5Feb 11, 2024 08:1519,867189,989,889162,902,0001,998,0002,486,272
6Feb 11, 2024 08:1519,885191,058,774162,048,0003,000,0002,519,040
7Feb 11, 2024 08:1519,929189,207,513165,412,00002,519,040
8Feb 11, 2024 08:1519,946192,384,857164,557,000997,0002,293,760
9Feb 11, 2024 08:1519,969193,324,370163,746,0001,996,0002,523,136
10Feb 11, 2024 08:1520,071199,331,249165,583,0001,003,0002,482,176
11Feb 11, 2024 08:1520,122199,189,649164,016,0003,000,0002,519,040
12Feb 11, 2024 08:1520,153193,827,369165,271,0002,003,0002,519,040