hey friend please help for Two Flowers question of codechef

hey please can you give me any idea on how to implement "two flower" question

please provide me any idea or if you can , so please share the code of it.

don't worry about the plagiarism , i will change the programming language of the code so there will be no plagiarism .
i have a very good command on the languages cpp ,java and python . i can convert any code in these languages.

Even the partial solution will work but please help.
please help.
link to the question -:
https://www.codechef.com/JUNE18B/problems/TWOFL
Topic archived. No new replies allowed.