Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hello, please help me with my data structure HW using C++ programming language. Please kindly follow the instruction, and do not use the library bits/stdc++.h,

Hello, please help me with my data structure HW using C++ programming language. Please kindly follow the instruction, and do not use the library bits/stdc++.h, conio.h and limit.h. Thanks a lot!

image text in transcribedimage text in transcribedimage text in transcribed
Word Review Description Kyaru has just finished her argumentative essay, the most significant part of the course work of GE1401 University English. In the class. teacher gave her a list of academic words. Before submitting, she would like to check quality of her essay by find a consecutive part in her essay where most academic words are used. Also, the number of words in the part she finds needs to be as small as possible. Input The input contains several cases. For each case, there holds: The first line of the input contains a positive integer 11., indicating the number of words in the academic word list. In the following 11. lines, each line contains a string with a length not exceeding 10, representing an academic word. The next line contains a positive integer 111., indicating the word count of Kyaru's essay. In the following m lines, each line contains a string with a length not exceeding 10, together denoting the content of the essay. The input of test cases terminates by end of file. Output For each test case, output two lines. The first line contains an integer indicating the number of academic words appearing in the part found (the same word appearing multiple times counts only once), followed by another line containing an integer indicating the length of this part. Sample Input/Output Input 3 analyze initiates split 14 when a nuclear reaction initiates the old uranium nucleus will split into two nuclei 3 analyze initiates split 6 i do not love university english Output DOVN Constraint 1

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions