Sexing a corn snake by the length of it's tail, is not an accurate means of being sure. It might give you a idea on which sex it is. To be sure your going to have to get your snake probed or popped, which should only be done by an experienced handler. To give you some idea, the first picture is a male( note how the tail is longer and slimmer). Second picture is a female.