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 listOct 11, 2024 02:10Joad NacerJoad NacerError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 11, 2024 02:1000000Error: expected "53683748136141531 ", got "53683765253354066 "stderr
2Oct 11, 2024 02:104,50459,139,14136,372,0001,010,0002,334,720
3Oct 11, 2024 02:104,50860,256,74235,391,0002,022,0002,334,720
4Oct 11, 2024 02:114,51459,273,77534,428,0003,037,0002,334,720
5Oct 11, 2024 02:114,52463,464,76936,533,0001,014,0002,510,848
6Oct 11, 2024 02:104,52662,894,54136,550,0001,015,0002,334,720
7Oct 11, 2024 02:114,52857,354,75636,566,0001,015,0002,510,848
8Oct 11, 2024 02:104,59260,330,82537,109,0001,002,0002,506,752
9Oct 11, 2024 02:104,60468,267,14335,200,0003,017,0002,506,752
10Oct 11, 2024 02:104,60762,136,42436,223,0002,012,0002,506,752