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 4, 2024 06:15GraceGraceScore: 5,090Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 4, 2024 06:155,06568,027,31541,038,0001,000,0002,273,280
2Jun 4, 2024 06:155,06768,537,81041,056,0001,001,0002,273,280
3Jun 4, 2024 06:155,07563,501,41540,117,0002,005,0002,404,352
4Jun 4, 2024 06:155,07767,061,53340,137,0002,006,0002,400,256
5Jun 4, 2024 06:155,07962,246,14740,148,0002,007,0002,519,040
6Jun 4, 2024 06:155,08464,531,71842,194,00002,404,352
7Jun 4, 2024 06:155,08669,382,70740,205,0002,010,0002,273,280
8Jun 4, 2024 06:155,09066,005,10840,232,0002,011,0002,273,280
9Jun 4, 2024 06:155,09869,308,10140,346,0001,968,0002,273,280
10Jun 4, 2024 06:155,281111,977,74743,833,66302,256,896
11Jun 4, 2024 06:155,283107,004,48343,850,40502,277,376
12Jun 4, 2024 06:155,285100,889,73143,867,78302,281,472
13Jun 4, 2024 06:156,14674,743,69249,012,0002,000,0002,387,968
14Jun 4, 2024 06:156,15272,882,74349,060,0002,002,0002,396,160
15Jun 4, 2024 06:156,17478,878,33749,232,0002,009,0002,273,280