It is said that my answer was temporarily deleted. Now, I put a lot of effort into writing the answer and I'd like it restored, how should I edit it so that it will be?
The second part of the comment that comes with the close notice:
I'm temporarily deleting this in accordance with our homework policy. Please don't post complete answers to the underlying problem in homework-like questions.
is self-explanatory. You need to edit down your answer and take out some details, and then plead you case to reopen.