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:01CuteSocksCuteSocksScore: 19,888Success
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:0119,641226,679,457163,018,24002,244,608
2Feb 11, 2024 08:0119,716246,211,363163,645,34902,232,320
3Feb 11, 2024 08:0119,744219,765,763163,874,37602,228,224
4Feb 11, 2024 08:0119,863194,918,396161,865,0002,997,0002,519,040
5Feb 11, 2024 08:0119,872188,150,400161,943,0002,998,0002,326,528
6Feb 11, 2024 08:0119,876190,658,099162,975,0001,999,0002,519,040
7Feb 11, 2024 08:0119,888194,127,130163,073,0002,000,0002,519,040
8Feb 11, 2024 08:0119,902196,049,235162,184,0003,003,0002,482,176
9Feb 11, 2024 08:0119,906190,983,471163,220,0002,002,0002,482,176
10Feb 11, 2024 08:0119,967191,681,228163,731,0001,996,0002,519,040
11Feb 11, 2024 08:0120,069195,624,045165,567,0001,003,0002,519,040
12Feb 11, 2024 08:0120,146191,580,567164,205,0003,003,0002,486,272