Equality Game
CodeChefOpen on judge ↗
Niel plays an equality game. It is stated that in the game each condition will be a 4 letter string. There are two types of strings that can be given as condition. Either $"a==b"$ or $"a!=b"$ where a and b are some variables whose value is not known. Niel wants to know if all the conditions can be satisfied for some values of variable. If all the conditions is satisfied print "Yes" else print "No"
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start