Graduated from or attended Stanford or an ivy league school (but preferably specifically Stanford). Proven track record of success. Under 30. Without family ties. Has impressive hacks they can mention on their application. Has a product with current traction. Has a product with unicorn upside potential ($1B possibilities). Product is very early in its lifecycle. Not a single founder (preferably two to three). Can sell the startup quickly (this is important if you make it to the interview) and address potential issues with the business plan.
But remember that at this point, they probably only interview 1 in 500 applications if that, so there's a lot of chance involved as well.
Of course that's just a guess based hanging around on HN not inside information or drinks with YC alums.
I guess the ideal situation from both YC's perspective and a founder's is when the application is mostly exhaust fumes from impassioned existing execution: when the effort to produce the content of the application is something that the founder(s) are committed to independently of the YC process. Their goal is to add momentum not overcoming inertia.
YC is a popular game of chance. It's not the only one. It's targeted at a particular type of player, not everyone. Building something provides several other options.
Good luck.