Subtask 0 meaning

Is subtask 0 in problems same as sample input ?

no it is not necessary.
although the test cases given in problem are very weak .
they are only given to make you interested and going in a problem.
however you should not rely on these,if you want a happy programming life.
cheers.