File size: 1,182 Bytes
c574d3a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
package torea;
import java.util.ArrayList;;
public class Racetrack{
public static void main(String[] arg){
Kattio io = new Kattio(System.in, System.out);
StringBuilder sb = new StringBuilder();
int n = io.getInt();
ArrayList<Car> adCars = new ArrayList<Car>();
for (int i =0; i< n; i++){
long laps = io.getLong();
long time = io.getLong();
adCars.add(new Car(laps, time));
}
io.print(sb);
io.close();
}
public static String doRace(ArrayList<Car> adCar)
{
// long bottleneck = 0;
// for( int i = adCar.size()-1; i>=0; i--){
// long tpl = adCar.get(i).timePerLap;
// long nl = adCar.get(i).nrLap;
// long temp = nl*tpl;
// for (Car otherCar : adCar.subList(0, i)){
// ;
// }
// }
return "";
}
public static class Car{
long timePerLap;
long nrLap;
long totalTime = 0;
Car(long tpl, long nl){
timePerLap = tpl;
nrLap = nl;
}
}
} |