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 listJun 4, 2024 02:34GraceGraceScore: 5,056Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 4, 2024 02:345,04270,113,40840,851,000996,0002,273,280
2Jun 4, 2024 02:345,04468,999,60040,871,000996,0002,273,280
3Jun 4, 2024 02:345,04466,462,41339,872,0001,993,0002,273,280
4Jun 4, 2024 02:345,04767,163,54839,899,0001,994,0002,400,256
5Jun 4, 2024 02:345,04865,243,65440,905,000997,0002,273,280
6Jun 4, 2024 02:345,04965,994,48939,915,0001,995,0002,396,160
7Jun 4, 2024 02:345,05268,668,21740,935,000998,0002,273,280
8Jun 4, 2024 02:345,05665,488,58139,969,0001,998,0002,273,280
9Jun 4, 2024 02:345,05864,960,56739,981,0001,999,0002,408,448
10Jun 4, 2024 02:345,484119,128,59745,515,85302,289,664
11Jun 4, 2024 02:345,484104,354,98245,517,22102,285,568
12Jun 4, 2024 02:345,484105,460,47745,513,92302,285,568
13Jun 4, 2024 02:346,21181,587,17551,549,00002,273,280
14Jun 4, 2024 02:346,24380,664,00850,820,000996,0002,396,160
15Jun 4, 2024 02:346,33379,550,39752,563,00002,273,280