Description
There is Jimmy, a data stream guru in the North China Dota field. As the saying goes, the hero of many ox X in TK, one of the three titans in the middle road, is full of two connections in eight levels (two skills, they are laser and missile, respectively. Basically, they can be those who are crispy, but they cannot be added with red light (a damage item is called a red rod ). It is known that the laser can cause 320 actual damage to the enemy, and the missile can cause 240 actual damage. The red rod is divided into 5 levels, with 1 level resulting in 300 points of actual damage, 2 levels resulting in 375 points of actual damage, 3 levels resulting in 450 points of actual damage, and 4 levels resulting in 525 points of actual damage, level 5 causes 600 points of actual damage. Now Level 8 TK sees an enemy hero and knows his blood volume n. After two connections, it takes several levels of red bars to kill the enemy hero.
-
Input
-
Input Multiple examples. Each example is a row with a positive integer N in each row.
-
Output
-
Each sample outputs a row, which is the serial number of the red rod. If you do not need a red rod, the output value is 0. If the top-level red rod is not killed, the output value is-1.
-
Sample Input
-
561
-
Sample output
-
1
Simple question
# Include <stdio. h> int main () {int life; int left; while (scanf ("% d", & Life )! = EOF) {left = life-560; If (left <= 0) {printf ("0 \ n");} else if (left <= 300) {printf ("1 \ n");} else if (left <= 375) {printf ("2 \ n");} else if (left <= 450) {printf ("3 \ n");} else if (left <= 525) {printf ("4 \ n");} else if (left <= 600) {printf ("5 \ n");} else {printf ("-1 \ n") ;}} return 0 ;}