Skip to content

SunicYosen/huawei_internship_exam_20190327

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Huawei Internship Exam

The way to the BEST.

2019-03-27

Exam1

大端编码和小端编码; 根据输入的标识和字符,化为大端并输出,以空格间隔;

input:

First line: N -- The number of inputs;
Second line: string -- The string of inputs;

Output:

One Line; The numbers with 8-bit; Big First;

eg:

INPUT:

2
0123456781abcdefgh

Output:

87654321 abcdefgh

Exam2

蜜蜂采蜜; 从原点出发,去5个点后回来; 求最短路径;取整;

Input:

Ten numbers of 5 point; (x1,y1)...(x5,y5)

Output:

The shortest Path

eg:

INPUT:

200 0 200 10 200 50 200 30 200 25

OUPUT:

456

Exam3

切水果;坐标方格随机摆放水果;横竖撇捺可以切到;求最少多少刀可以切完;

INPUT:

First Line: N -- Number of fruit; Second Line to N+1 Line: The position of fruit (x,y)

OUTPUT:

Number of the less;

eg:

Input:

2
2 3
3 5

Output:

2

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages