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 22, 2025 20:44alfaixalfaixScore: 75,726Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 22, 2025 20:4768,311591,171,198564,980,0001,999,0002,281,472
2Feb 22, 2025 20:4768,335589,557,063566,181,0001,000,0002,289,664
3Feb 22, 2025 20:4768,352592,797,857566,321,0001,000,0002,289,664
4Feb 22, 2025 20:4768,358591,528,320566,375,0001,000,0002,289,664
5Feb 22, 2025 20:4768,378591,362,762565,540,0001,998,0002,281,472
6Feb 22, 2025 20:4768,384594,087,020565,586,0001,998,0002,289,664
7Feb 22, 2025 20:4768,530592,270,224566,799,0001,999,0002,273,280
8Feb 22, 2025 20:4768,557597,583,707567,025,0002,000,0002,281,472
9Feb 22, 2025 20:4768,561596,343,121567,060,0002,000,0002,293,760
10Feb 22, 2025 20:4475,726657,794,960627,525,000999,0002,277,376
11Feb 22, 2025 20:4475,727659,243,787626,540,0001,998,0002,289,664
12Feb 22, 2025 20:4475,752653,046,929627,744,000999,0002,269,184
13Feb 22, 2025 20:4475,762650,685,453626,822,0001,999,0002,277,376
14Feb 22, 2025 20:4475,762652,016,512626,826,0001,999,0002,387,968
15Feb 22, 2025 20:4475,852659,840,728627,573,0001,998,0002,289,664
16Feb 22, 2025 20:4475,963654,503,491628,499,0001,998,0002,289,664
17Feb 22, 2025 20:4476,004657,618,453628,838,0001,999,0002,289,664
18Feb 22, 2025 20:4476,074656,393,234630,418,0001,000,0002,281,472