Get the Illegal Ending without unlocking any doors in the saveroom except for G. You're allowed to unlock doors with numbers on them.
What makes this challenging is that you can't get the inventory; and you can't use any resources outside of the train rooms except for two warp bombs, a few gems (useless since you can't go into any shops), a box, some blue cubes and a yellow bird.
The cheat button, developer mode, and changing the savefile through a text editor are all forbidden.
There's no real solution except for the setup, which I might as well post:
While you're in the tutorial, pick up a few boxes and throw them on top of the cliff where the white gun is, making sure to leave three a two-block gap at the top for you to squeeze through. Then get on top of the cliff, pick up the topmost box, and do a jump-drop with it while moving left. You'll get into a secret passage, keep going left, warp out with the master key, open the G door, get going.