<> Huawei test questions

<> Question 1 (100 branch )

*
<> Title Description
Give a line of string , contain 2 Group date , adopt “|” Separate them , The date is separated by a space , Only the first group contains the day of the week , Please calculate the day of the week corresponding to the day of the second group
*
<> Enter a description
One line contains 2 String of group year, month and day .
*
<> Output description
Results of calculation , Type is character .
*
<> Examples

* input 1980 01 02 5| 1980 01 04
* output 7
* explain

Input representation 1980 year 1 month 2 day , Friday , Please work out 1980 year 1 month 4 What day is Sunday , output 7, It means Sunday . Note the designation here 1980 year 1 month 2 day , Friday , It may not be a week in a normal day , Don't try to verify 1980 year 1 month 2 Is Sunday and Friday correct .
<> Question two (200 branch )

*
<> Title Description
There are several fixed position street lamps on a road , Street lights need to illuminate all bus stops on the road ; Now number all the bus stops and street lights on the way out , Bus stops and streetlights are arranged on the road according to the location number .
Calculate street lamp brightness ( It refers to the distance between the street light position number and the bus stop position number ) How much to adjust , To light up all the bus stops on the road .
*
<> Enter a description
The first line represents the bus stop location number , Comma separated
The second line shows the street lamp position serial number , Comma separated
*
<> Output description
Minimum brightness of output street lamp
*
<> Examples

* input 3,1,4,2 3
* output 2
<> The third question (300 branch )

*
<> Title Description

The landlord of the bookstore plans to get in a batch of new books , Selected n This book with the same price is an alternative , And give VIP Readers sent out a number of questionnaires , Collect a list of books each reader wants to read . In order to save the purchase cost , The boss decided to guarantee everyone VIP Readers at least have 1 This favorite book is on the premise of purchasing list , Minimize procurement costs . Now the book and readers are from 0 Start numbering , The list of books that readers want to read is as follows b, Please output the minimum number of books purchased .

*
<> Enter a description

The first line is the number of books ; The second line is the number of readers ; The third line is the list of books the reader wants to read b, Each row contains at least 1 Of this book id, Multi book id Between 1 Space separated . be careful :
1, The title guarantees the validity of input .
2,1 <= n <= 100

*
<> Examples

* input 5 3 1 2 2 3 4
* output 2
* explain
5 This book ,3 Readers ,
Purchase number is 2 At the same time meet the readers 0 and 1;
Purchase number is 3 perhaps 4 The book satisfies the readers 2;
The minimum number of books purchased is 2;

Technology
©2019-2020 Toolsou All rights reserved,
JQ get request Splicing url parameter ( query criteria )Android 11 Official release !mysql Recursively finds all child nodes of the parent class Centos7 lower mysql8.0 To install and change the initial password ;npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! test_vue_0613@1.0.0 dev: Solutions to errors Paging tool class PageResultElementUI In the select Of label value Java Thread of Sleep() Summary of usage rk3399_android7.1 debugging USB Summary of Bluetooth module ( Essence )2020 year 7 month 15 day Wechat applet assembly Component Use of