这是个病句.正确的应该是:It took me three hours to finish the work.
它的同意句是:I spent three housr in finishing the work.其中in可以省略.