Cześć
Cały czas dostaje komunikat: "Przekroczono limit czasu". Ktoś wie dlaczego?
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int t = sc.nextInt();
while(t-->0){
int a = sc.nextInt();
int b = sc.nextInt();
System.out.println((2*(a*b))/(b+a));
}
}
created
last reply
- 1
reply
- 575
views
- 2
users
- 1
like