1 solutions

  • 1
    @ 2021-11-27 11:58:46
    #include <iostream>
    #include <math.h>
    using namespace std;
    
    const int R = 6371; // km
    const int h = 10; // km
    const int H = R + h; // km
    const double PI = 3.14;
    
    int main(){
    	int T;
    	cin >> T;
    	while(T--){
    		int x, y;
    		cin >> x >> y; // 纬度位移,经度位移
    		double level = ((PI / 2) * H * y) / (((PI / 2) * H) - x);
    		cout << (int)ceil(level - y) << endl;
    	}
    	return 0;
    }
    
    
    • 1

    Information

    ID
    186
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    8
    Tags
    # Submissions
    31
    Accepted
    7
    Uploaded By