Skip to content
Related Articles
Get the best out of our app
GeeksforGeeks App
Open App
geeksforgeeks
Browser
Continue

Related Articles

Puzzle | Gun, Missile and Robot

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

There are three people (Ajay, Bhuvi and Chandu), one of them is a Gun, one a missile, and one a robot. The Gun always tells the truth, the missile always lies, and the robot can either lie or tell the truth.
Statements :
Ajay : “Chandu is a missile.”
Bhuvi : “Ajay is a Gun.”
Chandu : “I am the robot.”
Find out the Gun, the missile and the robot?

 

Solution :
Ajay is Gun
Bhuvi is robot
Chandu is missile

Bhuvi is not the Gun, since if he is, then Ajay would also be the Gun.
Chandu is not the Gun, since his statement would then be a lie.
So Ajay is the Gun, Chandu is the missile, and Bhuvi is the robot.

This article is contributed by Ajay Puri. If you like GeeksforGeeks and would like to contribute, you can also write an article using write.geeksforgeeks.org or mail your article to review-team@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.

My Personal Notes arrow_drop_up
Last Updated : 18 Jan, 2023
Like Article
Save Article
Similar Reads