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 16, 2024 02:48zielajzielajScore: 3,597Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 16, 2024 02:293,53854,838,95428,355,0001,012,0002,342,912
2Nov 16, 2024 02:483,54652,172,70529,433,00002,351,104
3Nov 16, 2024 02:483,55655,526,56928,499,0001,017,0002,527,232
4Nov 16, 2024 02:483,55853,861,54128,512,0001,018,0002,273,280
5Nov 16, 2024 02:483,56250,366,85728,544,0001,019,0002,527,232
6Nov 16, 2024 02:483,56254,679,27829,563,00002,527,232
7Nov 16, 2024 02:293,56758,555,51228,584,0001,020,0002,269,184
8Nov 16, 2024 02:483,57655,979,46129,681,00002,527,232
9Nov 16, 2024 02:483,59558,177,38328,845,000994,0002,523,136
10Nov 16, 2024 02:483,59758,182,17627,861,0001,990,0002,347,008
11Nov 16, 2024 02:293,59858,795,65826,878,0002,986,0002,347,008
12Nov 16, 2024 02:483,60059,134,16427,891,0001,992,0002,347,008
13Nov 16, 2024 02:293,75356,015,81031,151,00002,531,328
14Nov 16, 2024 02:293,75750,511,63530,177,0001,005,0002,277,376
15Nov 16, 2024 02:483,76856,475,63329,256,0002,017,0002,359,296
16Nov 16, 2024 02:293,77259,385,25230,295,0001,009,0002,277,376
17Nov 16, 2024 02:483,80150,543,57931,550,00002,363,392
18Nov 16, 2024 02:483,80857,017,36231,607,00002,531,328