I spent two hours with my homework.这句话对吗

问题描述:

I spent two hours with my homework.这句话对吗

不对.
I spent two hours on my homework.
或者I spent two hours in doing my homework.
或者I spent two hours doing my homework.