harbor run -t openthoughts/tasktrove-exp-rpt-codenet-python-v2-codenet-python-7729
harbor download openthoughts/tasktrove-exp-rpt-codenet-python-v2-codenet-python-7729
You are given three strings: A, B, and C. Your task is to determine whether these strings form a word chain based on the following conditions:
A
B
C
If both conditions are satisfied, print YES. Otherwise, print NO.
YES
NO
Input:
apple ender egg
Output:
dog cat game
hello orange elephant
You should implement the solution in the /app/ directory.
/app/
Important: place your implementation at /app/solution.py so the verifier can run it.
/app/solution.py