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 19:08Joad NacerJoad NacerScore: 10,035Success
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 19:0810,012105,930,48381,098,0002,002,0002,519,040
2Apr 27, 2024 19:0810,018105,649,11481,146,0002,003,0002,285,568
3Apr 27, 2024 19:0810,026109,242,97182,211,0001,002,0002,510,848
4Apr 27, 2024 19:0810,027108,625,12182,218,0001,002,0002,285,568
5Apr 27, 2024 19:0810,030112,263,81881,246,0002,006,0002,285,568
6Apr 27, 2024 19:0810,034115,702,47882,283,0001,003,0002,510,848
7Apr 27, 2024 19:0810,034112,076,99081,277,0002,006,0002,506,752
8Apr 27, 2024 19:0810,035106,045,72383,294,00002,506,752
9Apr 27, 2024 19:0810,071110,336,13882,583,0001,007,0002,285,568
10Apr 27, 2024 19:0810,500156,383,90987,152,91702,265,088
11Apr 27, 2024 19:0810,682149,618,54488,663,10302,281,472
12Apr 27, 2024 19:0810,693155,274,46188,753,14502,269,184
13Apr 27, 2024 19:0810,967118,781,80889,025,0002,000,0002,285,568
14Apr 27, 2024 19:0810,977113,621,53089,111,0002,002,0002,519,040
15Apr 27, 2024 19:0810,989113,759,39889,203,0002,004,0002,285,568