2016 C Language Program Design Competition (junior group), Jiangxi University of Technology

Source: Internet
Author: User
Problem description Washington in the bedroom wash clothes, met Xyf, so xyf out a question to Washington to do (but there is no relationship-v-!)
XYF throw to Washington N strings, these strings are not more than 10000 in length and have no empty strings. There are Q queries, each asking for a k, to find that the substrings in the N string contain the number of k strings (see hint for details) input multiple sets of tests.
Each group of tests first enters n,q to represent n strings, Q asks. (1<= N, Q <=1e4)
Next n lines a string si per line, (1<= |si| <= 1e4)
Then the Q line asks, each query input an integer k (1<=k<=n)
Can tell you a group of inquiries in ∑ (SI) <= 5e4;output each query output an answer, a row, indicating the number of K-strings included cheat in, haha

2016 C Language Program Design Competition (junior group), Jiangxi University of Technology

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.