- 5

Solve this

Fluffy the Squirrel is trying to learn addition and division. Fluffy’s teacher provided him with the following table. 1475051900-b1b84b25fb-Untitleddrawing.png The value of the above table is defined as . (Note: represents the greatest integer smaller than . E.g. ) Fluffy’s homework is to find the minimum number of 90° clockwise rotations to maximise the value of the table. A 90° clockwise rotation looks like the following: 1475052214-f613fc0760-Untitleddrawing1.png In the above example, the table's initial value is while the table's value after one rotation is . Help Fluffy with his homework! Hint: // is for floor division in Python 3, e.g. 5 / 2 returns 2.5 whereas 5 // 2 returns 2. Input Format There are two lines of input. The first line contains two integers and . The second line contains two integers and . Constraints Output Format Output an integer , the minimum number of 90° clockwise rotations needed to maximise the table's value. Sample Input 1 2 3 4 Sample Output 2 Explanation After 2 rotations, the table's value is , which is the maximum possible.

1st Oct 2016, 7:08 AM
Capr Veronessia
2 Answers
0
anwer is me yoo 245, 45rtd, error, 3grt, c is to klargre fotr bvari able 537276db1g10101010010101 1001010101 111101010 odnefe ejdcbfe thids hard I AM RIGHT!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! OK,,, i'l stop now
6th Mar 2017, 2:03 AM
diogo
0
you should stop doing this
7th Mar 2017, 12:24 AM
diogo