Who came up with the idea of cheese?

Nobody "came up with" the idea of cheese. It's likely that cheese was discovered accidentally, probably by someone who stored milk in a container made of animal stomach lining.

Here's why:

* Milk spoils: Fresh milk, especially in warm climates, will naturally sour and separate into curds and whey.

* Animal stomachs: Traditionally, people used animal stomachs to store milk, as they were naturally leak-proof. The rennet (an enzyme found in the stomachs of ruminant animals) would interact with the milk, accelerating the separation process.

* Accidental discovery: It's highly plausible that someone stumbled upon the curds, tasted them, and realized they were a tasty and durable food.

So, the "invention" of cheese was likely a gradual process, not a single Eureka moment. It happened over time, probably independently in various parts of the world.