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 listJul 19, 2022 16:25Yuriy LyfenkoYuriy LyfenkoError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 19, 2022 16:2200000Error: expected "53684603275306660 ", got "53684608956434909 "
2Jul 19, 2022 16:2300000Error: expected "53692470656727037 ", got "53692474200388550 "
3Jul 19, 2022 16:2300000Error: expected "53683177685176854 ", got "53683185943527796 "
4Jul 19, 2022 16:2500000Error: expected "53683795310603563 ", got "53683800717610219 "
5Jul 19, 2022 16:2525,485238,879,185211,522,00002,502,656
6Jul 19, 2022 16:2525,489237,057,277210,559,0001,002,0002,269,184
7Jul 19, 2022 16:2525,491243,971,853210,570,0001,002,0002,347,008
8Jul 19, 2022 16:2525,492242,532,595210,582,0001,002,0002,273,280
9Jul 19, 2022 16:2525,497238,088,408210,621,0001,002,0002,506,752
10Jul 19, 2022 16:2525,513237,024,308209,762,0001,997,0002,498,560
11Jul 19, 2022 16:2525,514234,715,337209,770,0001,997,0002,265,088
12Jul 19, 2022 16:2525,515236,949,035209,778,0001,997,0002,527,232
13Jul 19, 2022 16:2525,527243,828,643209,872,0001,998,0002,527,232
14Jul 19, 2022 16:2526,209277,654,738217,538,44502,244,608
15Jul 19, 2022 16:2526,212283,871,963217,561,82202,232,320
16Jul 19, 2022 16:2526,215280,774,650217,584,14002,244,608