?????????????????????????????????????????????????????Ч?????????????????·??????????????????????в?????????????????????????????????????????????????????
??????????????????????н??е?????????д???????????????????????????????????????????????????????????

??????????????????foo(intx??int y)??????????
????a.????x = 1 ?? y = 0 ?????0
????b.????x = -1 ?? y = 0 ?????-1
??????????????????????????????????????????????????????????????????????????????????????????????????????????
??????????????????
???????????????P??????????????T??????????????P????????????Pn??P0??P1……Pn??????P??Pn?????T???в??????У????Pi??????????????t????P????????????????Pi?????????Pi?????е??????????????P??????????????????????????塣?????????????????з?????????????????P????????????P???????Pi???н???????????????????????????????
????????????????????????
????Step1?????????
????l P(t)???????????????t??????P????н????P?б?????????????????????P???????й??
????l ???P??????ò???T????????????????????????????У??????????????????
????l ??????????????????????????T?е?????t??P(t)?????
????Step2???????????
????l ????“??”??????“??”????“×”??????“/”?????
????l ????????????????????????????
????l ????????????????????
????Step3????????????????
????l ??L????????????
????Step4??????????????????
????l ?????????t?????????????????????P
????l ???ò???T?е??????????б?????M??
????l ?????????е?????????????????M???????????????????????
????Step5??????????к????
????l ????????е????????P????н????????
????Step6?????????
????l ?????в?????????????????????P????????????????????????彎??L?С?
????Step7??????????
????l ??????????P?????????е???????????????M????н??????P????н?????????M?????P??