Indiana Jones and the cryptic code SOLUTIONS ECAUG208

Indiana Jones and the cryptic code SOLUTIONS

Indiana Jones has at last discovered Atlantis and he likewise found a few compositions that can decode Atlantean language. Abnormally Atlantean language letter sets are equivalent to English language letters in order. The Atlantean composition contains N special words. (numbered from 1). 
Indiana has likewise found a gadget that shows a solitary letter set for each second for an aggregate of Q seconds. At each second, Indiana attempts to make sense of if the string shaped by a portion of the back to back letters in order appeared by the gadget up to that point, spell any of the word present in the rundown. In the event that he finds a word, he prints F(String) 
F(String) is 0, if the position(string) in original copy is odd, and it is 1, if the position(string) in composition is even. 
at each subsequent Indiana can discover numerous words from the rundown wherein case, shorter words get their f(string) determined first. 
Note: a word comprising of q(i… … j) can be taken just a single time. On the off chance that a similar word is found in another position, at that point it tends to be added to yield once more. 
First line will contain N, number of words in the rundown. 
The following line will contain N space isolated words. 
The following line contains Q speaking to the quantity of letter sets let out by the machine 
The accompanying Q lines will each have a solitary letter set. 
Yield the string that speaks to the message. Its is ensured that at any rate 1 word will be found 
Every q is a solitary lowercase english letter set. 
Kindly utilize quick I/O to take input. 
Test Input: 
Test experiment 1: 
abc ced 
Test experiment 2: 
babc abc 
Test Output: 
Test experiment 1: 
Test experiment 2: 
In the primary model, word ‘abc’ and ‘ced’ was there in the rundown of letter sets let out. Consequently yield 01.

March Long Challenge 2021 Solutions

April Long Challenge 2021 Solutions

Codechef Long Challenge Solutions

February Long Challenge 2021

1. Frog Sort Solution Codechef

2. Chef and Meetings Solution Codechef

3. Maximise Function Solution Codechef

4. Highest Divisor Solution Codechef

5. Cut the Cake Challenge Solution Codechef

6. Dream and the Multiverse Solution Codechef

7. Cell Shell Solution Codechef

8. Multiple Games Solution Codechef

9. Another Tree with Number Theory Solution Codechef

10. XOR Sums Solution Codechef

11. Prime Game Solution CodeChef

12. Team Name Solution Codechef

January Long Challenge 2021

November Challenge 2020 SOLUTION CodeChef

October Lunchtime 2020 CodeChef SOLUTIONS


Related :

Related :

Leave a Comment

eight + 7 =