Hard amplifier problem - Pleease anwer

Did you simulate it? (my link above, CircuitLab)

Yes, Vout=Vin. Value of resistor doesn't matter. You can even put 0R.

But in real life the output will smack against one rail or the other and stay there.

That's true for all opamps. -- not just this circuit.

For the positive cycle, Vout cannot be greater than V+ (where V+ is your supply voltage). So if your Vin >> V+, Vout = V+
(and the converse is also true for V-, if you're using a split power supply).

In real life, Vout max is usually some V+ minus (some voltage value, say 0.7V or something, depends on the opamp).