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 28, 2024 02:26Joad NacerJoad NacerScore: 8,921Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 28, 2024 02:268,532155,517,72070,812,97002,273,280
2Apr 28, 2024 02:098,549137,193,49570,955,95302,277,376
3Apr 28, 2024 02:098,552139,266,93370,980,97502,281,472
4Apr 28, 2024 02:268,569133,825,69271,123,32802,281,472
5Apr 28, 2024 02:098,575138,435,76671,176,29102,269,184
6Apr 28, 2024 02:268,627142,029,35771,606,75502,273,280
7Apr 28, 2024 02:268,90497,707,17671,906,0001,997,0002,260,992
8Apr 28, 2024 02:268,907100,391,70171,929,0001,998,0002,285,568
9Apr 28, 2024 02:268,90899,796,10371,939,0001,998,0002,523,136
10Apr 28, 2024 02:268,91396,570,55171,982,0001,999,0002,265,088
11Apr 28, 2024 02:268,91797,585,68472,010,0002,000,0002,265,088
12Apr 28, 2024 02:098,91896,464,12072,018,0002,000,0002,269,184
13Apr 28, 2024 02:098,918101,748,45373,021,0001,000,0002,285,568
14Apr 28, 2024 02:098,918102,214,96272,018,0002,000,0002,285,568
15Apr 28, 2024 02:098,91997,580,39772,029,0002,000,0002,285,568
16Apr 28, 2024 02:098,921100,937,21473,046,0001,000,0002,285,568
17Apr 28, 2024 02:098,92298,101,37472,050,0002,001,0002,285,568
18Apr 28, 2024 02:268,95997,057,47573,357,0001,004,0002,527,232
19Apr 28, 2024 02:268,96997,926,74073,435,0001,005,0002,269,184
20Apr 28, 2024 02:269,057103,016,33173,171,0002,004,0002,273,280
21Apr 28, 2024 02:099,061102,397,12074,208,0001,002,0002,285,568
22Apr 28, 2024 02:269,06996,405,71673,269,0002,007,0002,285,568
23Apr 28, 2024 02:099,079103,353,03274,351,0001,004,0002,285,568
24Apr 28, 2024 02:099,440108,199,60477,352,0001,004,0002,285,568
25Apr 28, 2024 02:099,986108,940,40480,889,0001,997,0002,285,568
26Apr 28, 2024 02:099,988106,613,92980,902,0001,997,0002,285,568
27Apr 28, 2024 02:2610,008110,164,97882,070,0001,000,0002,519,040
28Apr 28, 2024 02:2610,141111,845,52482,169,0002,004,0002,265,088
29Apr 28, 2024 02:0910,156112,004,80083,293,0001,003,0002,285,568
30Apr 28, 2024 02:2610,245109,453,81483,037,0002,000,0002,277,376