1. You have to study hard to get into university.

2. You have to study hard to go into university.

3. You have to study hard to enter university.

4. You have to study hard to enter the university.

(Are the four sentences all grammatical and the same?)

All are grammatically correct and mean about the same thing. #1 is the most common phrasing.

We don't usually use 2.

The others are correct. Please note that the English don't ordinarily use "the" before "university," so 1 and 3 would be used in Great Britain. People in the U.S. use 4.

Yes, all four sentences are grammatically correct. They convey the same meaning but differ slightly in terms of style and emphasis.

1. "You have to study hard to get into university."
- This is a common and natural way of expressing the idea that studying hard is necessary to be admitted to a university.

2. "You have to study hard to go into university."
- This sentence is also grammatically correct, but it sounds a bit less formal or precise than the others. Using "go into" instead of "get into" does not change the meaning significantly, but it may sound more colloquial.

3. "You have to study hard to enter university."
- This sentence is straightforward and commonly used. It conveys the same idea as sentence 1.

4. "You have to study hard to enter the university."
- This sentence is similar to the third one, but it includes the definite article "the" before "university." Adding "the" implies a specific university instead of any university in general.

Overall, all four sentences are grammatically correct, and the meaning remains consistent in each case.