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 listJul 2, 2023 20:22dzaimadzaimaScore: 18,334Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 2, 2023 20:2218,313178,019,172151,001,0001,000,0002,379,776
2Jul 2, 2023 20:2218,321174,378,017151,064,0001,000,0002,523,136
3Jul 2, 2023 20:2218,323179,627,984151,083,0001,000,0002,383,872
4Jul 2, 2023 20:2218,329179,372,415151,133,0001,000,0002,392,064
5Jul 2, 2023 20:2218,332173,918,971151,152,0001,001,0002,523,136
6Jul 2, 2023 20:2218,333177,397,480151,165,0001,001,0002,392,064
7Jul 2, 2023 20:2218,334174,449,249151,174,0001,001,0002,523,136
8Jul 2, 2023 20:2218,340182,051,071152,224,00002,379,776
9Jul 2, 2023 20:2218,342176,146,252151,237,0001,001,0002,523,136
10Jul 2, 2023 20:2219,409218,919,302161,096,63002,248,704
11Jul 2, 2023 20:2219,414213,912,792161,136,43102,244,608
12Jul 2, 2023 20:2219,414215,909,203161,137,54402,236,416