Home > Back-end >  I am a beginner, answer two questions, thank you.
I am a beginner, answer two questions, thank you.

Time:10-20

[problem description] chongqing normal taxi charge standard as follows: the start of 3 kilometers, the starting fare 10 yuan. After super start mileage rates 1.8 yuan per kilometer, billing once every 0.5 km (less than 0.5 km no charge), operating process, if the road resistance and passenger requests a temporary parking, press 1 km rent collecting every 5 minutes (there is no charge for less than 5 minutes), write a program to input range (km) and waiting time (minutes), calculate and output the passengers should pay the fare (yuan),
[form] input two Numbers (first said mileage, unit km; Second said waiting time, the unit minutes), separated by a space between
[] output form a number (should pay the fare, said yuan) (keep 2 decimal places)
[sample input] 5.5 6.8
[sample output] 16.30
[example]
[scoring criteria]
[problem description]



Have the following properties of a number called & amp; other Number of homogeneous & amp; rdquo; :
Set b is a square, a and b of the low number of same,
5 is 25, for example, the number of isomorphism, 25 number of isomorphism of 625
Program to meet the following requirements:
Input two integers a and b (0 & lt;=a, b<=99), to find a, b between all the number of isomorphism,
[form] input
From the keyboard input two integers between 0 and 99 a and b, separated by Spaces,
[] output form
On the screen in the order from small to large output all homogeneous, a line, each integer
[input sample]
0 to 30
[output sample]
0
1
5
6
25
[example]
Isomorphism between 0 to 30 number is 0, 1, 5, 6, 25.

CodePudding user response:

Code? One line of code are not ~
  • Related