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 listOct 14, 2024 15:46Joad NacerJoad NacerScore: 4,453Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 14, 2024 15:454,25565,375,56432,293,0003,027,0002,535,424
2Oct 14, 2024 15:454,25763,625,64633,314,0002,019,0002,306,048
3Oct 14, 2024 15:454,31864,474,41832,856,0002,986,0002,535,424
4Oct 14, 2024 15:464,33058,497,12834,943,000998,0002,297,856
5Oct 14, 2024 15:464,33860,792,04634,004,0002,000,0002,535,424
6Oct 14, 2024 15:464,34658,382,08333,067,0003,006,0002,306,048
7Oct 14, 2024 15:464,35759,159,51036,166,00002,531,328
8Oct 14, 2024 15:464,39055,836,03034,413,0002,024,0002,531,328
9Oct 14, 2024 15:464,41572,300,64434,607,0002,035,0002,310,144
10Oct 14, 2024 15:454,45360,297,26934,964,0001,997,0002,486,272
11Oct 14, 2024 15:464,45761,265,27935,991,000999,0002,301,952
12Oct 14, 2024 15:454,49159,816,48135,259,0002,014,0002,535,424
13Oct 14, 2024 15:464,53769,860,52635,618,0002,035,0002,535,424
14Oct 14, 2024 15:464,53864,577,35735,681,0001,982,0002,535,424
15Oct 14, 2024 15:464,54362,267,50137,708,00002,392,064
16Oct 14, 2024 15:454,55965,494,22636,842,000995,0002,535,424
17Oct 14, 2024 15:464,62557,949,76837,381,0001,010,0002,301,952
18Oct 14, 2024 15:464,87763,320,10140,478,00002,310,144