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 21:40GraceGraceScore: 4,799Success
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 21:404,75062,432,53238,418,0001,011,0002,404,352
2Jun 4, 2024 21:404,75363,088,20238,442,0001,011,0002,400,256
3Jun 4, 2024 21:404,75460,204,83538,448,0001,011,0002,273,280
4Jun 4, 2024 21:404,75563,294,05838,458,0001,012,0002,396,160
5Jun 4, 2024 21:404,75764,613,99538,472,0001,012,0002,273,280
6Jun 4, 2024 21:404,75964,433,04439,497,00002,273,280
7Jun 4, 2024 21:404,76166,042,28039,520,00002,396,160
8Jun 4, 2024 21:404,76362,613,72238,524,0001,013,0002,396,160
9Jun 4, 2024 21:404,76468,143,63038,531,0001,013,0002,273,280
10Jun 4, 2024 21:404,76659,605,10538,542,0001,014,0002,400,256
11Jun 4, 2024 21:404,77168,553,48539,596,00002,400,256
12Jun 4, 2024 21:404,77168,116,58038,588,0001,015,0002,404,352
13Jun 4, 2024 21:404,77265,862,49138,596,0001,015,0002,400,256
14Jun 4, 2024 21:404,77267,030,98439,604,00002,510,848
15Jun 4, 2024 21:404,77970,870,13538,648,0001,017,0002,396,160
16Jun 4, 2024 21:404,79971,699,65838,837,000995,0002,273,280
17Jun 4, 2024 21:404,80266,420,21937,862,0001,992,0002,408,448
18Jun 4, 2024 21:404,80460,612,24037,883,0001,993,0002,273,280
19Jun 4, 2024 21:404,80560,794,44638,886,000997,0002,273,280
20Jun 4, 2024 21:404,81369,683,40138,949,000998,0002,273,280
21Jun 4, 2024 21:404,82764,791,20739,062,0001,001,0002,396,160
22Jun 4, 2024 21:404,86462,950,31140,370,00002,396,160
23Jun 4, 2024 21:404,88361,348,64539,512,0001,013,0002,396,160
24Jun 4, 2024 21:404,893110,716,77140,613,86302,281,472
25Jun 4, 2024 21:404,93563,669,25039,965,000999,0002,273,280
26Jun 4, 2024 21:404,967116,922,11041,224,85902,281,472
27Jun 4, 2024 21:405,014216,465,51141,620,09202,285,568
28Jun 4, 2024 21:405,043125,355,19941,860,82602,289,664
29Jun 4, 2024 21:405,181345,876,47542,999,79802,289,664
30Jun 4, 2024 21:405,466231,012,55645,368,49002,293,760