python--Practice and face test

Source: Internet
Author: User
Tags first string

1. the bonus awarded by the Enterprise is based on the profit percentage. Profit (I) less than or equal to ten million, bonuses may be 10%; high profit

at Ten Yuan, below the Million Yuan , under the partial press 10% Commission, higher than The million-dollar portion of the cocoa extract

7.5% 20 million to 40 20 million part, can commission 5% 40 million to 60

the part of the million yuan, can commission 3% , between million to million, above Million part, can commission 1.5%, higher than

Million yuan, more than A portion of the million yuan according to 1% Commission, from the keyboard input month profit I, The total number of bonuses to be paid?

2. an integer, plus a full square number, plus 168 is a complete square number, what is the number?

3. # (2017- Millet - sentence reversal )

- Title Description:

> given a sentence (containing only letters and spaces), the word position in the sentence is reversed, the word is separated by a space , there is only one space between the words, and there are no spaces. For example: (1) "Hello Xiao Mi", "Mi xiao Hello"

- Enter a description :

> input data has multiple groups, one row for each group, including a sentence ( sentence length is less than three characters )

- Output Description :

> for each Test example, it is required to output sentences that are formed after the word reversal in the sentence

- Example 1:

```

- Input

Hello Xiao mi

- Output

Mi Xiao Hello

4. # (2017- Good future - written programming questions )-- practice

- Title Description :

enter two strings, removing all the characters from the second string from the first string. For example, enter "They is students." and the "Aeiou" , the first string after the deletion becomes "Thy R stdnts."

- Enter a description :

Each test input consists of 2 strings

- Output Description :

Output the deleted string

- Example 1:

```

Input

They is students.

Aeiou

Output

Thy R stdnts.

```

5. # (2017- netease - written test programming questions )- string Practice

Small, easy-to-like words have the following characteristics:

1. words each letter is capital letter

2. words have no consecutive equal letters

The column may not be contiguous.

For example:

Xiao Yi does not like "ABBA", because there are two consecutive ' B '

Xiao Yi does not like "Thetxh", because this contains the subsequence "thth"

small easy to like "A", "ABA " and "ABCBA" these words

give you a word, you have to answer whether Xiao Yi will like the word.

- Enter a description :

input is a string consisting of uppercase letters with a length of less than 100

- Output Description :

if small easy to like output "likes", do not like output "dislikes"

Example 1:

```

Input

Aaa

Output

Dislikes

```


python--Practice and face test

Related Article

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.