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 7, 2024 12:11GraceGraceError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 7, 2024 12:1200000Error: expected "53681256830146933 ", got "53681213880473973 "
2Jun 7, 2024 12:114,13456,555,24932,294,0002,018,000176,128
3Jun 7, 2024 12:114,15057,444,92032,421,0002,026,0002,371,584
4Jun 7, 2024 12:114,15160,991,50331,416,0003,040,0002,482,176
5Jun 7, 2024 12:114,16059,205,34232,500,0002,031,0002,273,280
6Jun 7, 2024 12:114,17557,878,14832,611,0002,038,000385,024
7Jun 7, 2024 12:114,18259,485,54432,724,0001,983,0002,490,368
8Jun 7, 2024 12:114,19559,972,70231,837,0002,984,0002,478,080
9Jun 7, 2024 12:114,19766,937,60732,847,0001,990,0002,486,272
10Jun 7, 2024 12:114,19863,431,26931,856,0002,986,0002,482,176
11Jun 7, 2024 12:114,21556,433,50232,986,0001,999,0002,486,272
12Jun 7, 2024 12:114,22759,073,11432,079,0003,007,0002,490,368
13Jun 7, 2024 12:114,24760,718,87133,235,0002,014,0002,273,280
14Jun 7, 2024 12:114,31596,256,96135,810,49202,248,704
15Jun 7, 2024 12:114,35096,058,64136,100,87202,371,584
16Jun 7, 2024 12:114,388102,443,59136,423,58502,240,512
17Jun 7, 2024 12:114,39795,646,88336,498,75602,248,704
18Jun 7, 2024 12:114,425106,179,05836,729,11202,248,704
19Jun 7, 2024 12:114,461107,996,78637,030,38102,240,512
20Jun 7, 2024 12:114,465114,366,47037,056,86602,240,512
21Jun 7, 2024 12:114,47196,677,02637,112,43602,256,896
22Jun 7, 2024 12:114,574103,134,13637,962,32602,248,704