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 listNov 8, 2023 10:50Robert BurkeRobert BurkeScore: 7,573Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 8, 2023 10:507,48185,376,25261,089,0001,001,0002,437,120
2Nov 8, 2023 10:507,56688,883,37961,802,000996,0002,510,848
3Nov 8, 2023 10:507,56688,505,37661,799,000996,0002,277,376
4Nov 8, 2023 10:507,56790,779,71561,809,000996,0002,437,120
5Nov 8, 2023 10:507,56788,003,02161,810,000996,0002,428,928
6Nov 8, 2023 10:507,56890,094,77660,818,0001,994,0002,539,520
7Nov 8, 2023 10:507,57288,585,02160,851,0001,995,0002,424,832
8Nov 8, 2023 10:507,57388,952,09860,861,0001,995,0002,428,928
9Nov 8, 2023 10:507,57486,468,27260,873,0001,995,0002,277,376
10Nov 8, 2023 10:507,57985,599,79060,910,0001,997,0002,277,376
11Nov 8, 2023 10:507,58084,916,75361,913,000998,0002,424,832
12Nov 8, 2023 10:507,58185,608,79561,927,000998,0002,277,376
13Nov 8, 2023 10:507,770125,138,08964,492,86202,301,952
14Nov 8, 2023 10:507,773125,887,99564,515,35602,293,760
15Nov 8, 2023 10:507,795121,946,50764,701,90202,297,856