Weapon Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others) Total Submission(s): 270 Accepted Submission(s): 212 Problem Description Doctor D. are researching for a horrific weapon. The muzzle of the weapon is a circ
js如下: // 方法定义 lat,lng function GetDistance( lat1, lng1, lat2, lng2){ var radLat1 = lat1*Math.PI / 180.0; var radLat2 = lat2*Math.PI / 180.0; var a = radLat1 - radLat2; var b = lng1*Math.PI / 180.0 - lng2*Math.PI / 180.0; var s = 2 * M
package Test; public class test6 { public static void main(String[] args) { // TODO Auto-generated method stub Mypoint mypoint1 = new Mypoint(1,1); Mypoint mypoint2 = new Mypoint(2,2); double distance = Mypoint.getDistance(mypoint1, mypoint2); System