You and YOUR team own the IP to the project. If a company is interested in your solution, it is entirely up to you whether you choose to work with them and/or potentially sell the IP. In an event of IP dispute, neither BeMyApp, hackathon.com, local organizers or partners are responsible for any IP ownership disputes by participants.