Smart answer:

Your search for Who wrote The Shining returned the following results:

written by Stephen King, not Stanley Kubrick

One thing though, The Shining was a book written by Stephen King, not Stanley Kubrick.

Famed novelist Stephen King

Famed novelist Stephen King wrote “The Shining” after staying at The Stanley Hotel in Estes Park.

horror master Stephen King

the shelves is filled with so much ghostly speculation that horror master Stephen King wrote 'The Shining' after spending a night there.

Source:

famous horror writer Stephen King

Interestingly, famous horror writer Stephen King's stay at the Stanley had inspired famous horror writer Stephen King to write famous horror writer Stephen King's famous horror novel The Shining.

a horror novel by American author Stephen King

The Shining is a horror novel by American author Stephen King.

Source:

Stanley Kubrick’s annotated copy of Stephen King

Stanley Kubrick’s annotated copy of Stephen King’s The Shining.

based on the novel of the same name by Stephen King

The Shining (1980) is a film by Stanley Kubrick based on the novel of the same name by Stephen King.

world-famous fiction writer Stephen King

The luxurious and secluded feel of The Stanley Hotel inspired world-famous fiction writer Stephen King to write world-famous fiction writer Stephen King's classic 1977 tale of terror, The Shining.

a 1980 horror film produced and directed by Stanley Kubrick and co-written with novelist Diane Johnson

The Shining is a 1980 horror film produced and directed by Stanley Kubrick and co-written with novelist Diane Johnson.

Source:

Stephen King to write Stephen King's terrifying movie; The Shining (1977)

This hotel inspired Stephen King to write Stephen King's terrifying movie; The Shining (1977).

Source: