Tsinsen 清橙 A1016. 缩小的陆地 (pi)

来源:互联网 发布:双流区2016年公交优化 编辑:程序博客网 时间:2024/04/30 20:04
#include <iostream>#include <cmath>using namespace std;int main(){    double s,x,y;    int t,z;    cin >> t;    while(t--){        z = -1;       cin >> x >> y;        s = ( x * x + y * y ) * ( 4.0 * atan(1.0) ) / 2;        while(1){           if(++z * 50 > s){               cout << z << endl;               break;           }        }    }return 0;}

0 0
原创粉丝点击