The force of the rock is one newton, or one kilogram-metre per second squared, so
1 sec2kg⋅m=(x kg)(9.8 sec2m)
Therefore, the mass of the rock is 9.81 kg, or about 102 grams.
Now, since one joule is one newton-metre, the amount of work required to counteract 1 N of gravitational force for one metre is precisely one joule.
Remark: having an idea of how much work a joule is, and how much force a newton is, is a good tool for checking the reasonableness of your work. For example, after this question, if you calculate that a marble weighs 100 N, you can be pretty sure there's an error in your calculation.