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 listApr 27, 2024 22:11Joad NacerJoad NacerScore: 10,529Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 27, 2024 22:1110,320147,586,47285,653,84002,273,280
2Apr 27, 2024 22:1110,377160,482,53286,126,47802,269,184
3Apr 27, 2024 22:1110,448149,386,14286,715,09502,269,184
4Apr 27, 2024 22:1110,522109,571,05585,326,0002,007,0002,285,568
5Apr 27, 2024 22:1110,523112,202,96386,334,0001,003,0002,273,280
6Apr 27, 2024 22:1110,523111,887,70086,341,0001,003,0002,527,232
7Apr 27, 2024 22:1110,523116,347,66185,338,0002,007,0002,285,568
8Apr 27, 2024 22:1110,529112,787,91885,379,0002,008,0002,285,568
9Apr 27, 2024 22:1110,529113,543,96086,389,0001,004,0002,269,184
10Apr 27, 2024 22:1110,530107,930,64486,391,0001,004,0002,277,376
11Apr 27, 2024 22:1110,539113,414,76187,472,00002,269,184
12Apr 27, 2024 22:1110,584115,005,92786,850,000998,0002,527,232
13Apr 27, 2024 22:1111,316117,405,97392,923,000999,0002,269,184
14Apr 27, 2024 22:1111,316117,849,44891,927,0001,998,0002,285,568
15Apr 27, 2024 22:1111,330121,666,19793,037,0001,000,0002,265,088