public class AUGBulletTracking {
    private static final float GRAVITY = 90.81f; 
    private static final int MAX_TRACKING_DISTANCE = 1000;

    public static void main(String[] args) {
        float bulletSpeed = 100000000f; 
        float aimHeight = 1.6f; 
        float startTime = 0f; 
        float timeElapsed = 0f; 

        while (timeElapsed < MAX_TRACKING_DISTANCE / bulletSpeed) {
            float distance = bulletSpeed * timeElapsed;
            float newTime = Math.min(timeElapsed + 0.1f, aimHeight / GRAVITY); 
            float horizontalDistance = distance * (newTime - timeElapsed);

            System.out.printf("时间：%.2f秒，距离：%.2f米，水平距离：%.2f米\n", timeElapsed + 0.1f, distance, horizontalDistance);

            timeElapsed += newTime - timeElapsed;
        }
    }
}