Note :- it's not necessary to have a "speed" input at the end of the first line
and if that’s the case we have to print distance 0.00 km (distance must be printed for every query.)
import...
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main
{
public static void main(String[] args) throws IOException
...
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main
{
public static void main(String[] args) throws IOException
...
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main
{
public static void main(String[] args) throws IOException
...
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException...
import java.io.*;
import java.util.StringTokenizer;
public class Main {
static String ReadLn (int maxLg) // utility function to read from stdin
{
byte lin[]...
import java.io.*;
public class Main {
static String ReadLn (int maxLg) // utility function to read from stdin
{
byte lin[] = new byte [maxLg];
int lg...