first commit

This commit is contained in:
Nyagami
2022-12-15 23:51:04 +07:00
commit 87d51fb251
292 changed files with 12623 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner reader = new Scanner(System.in);
int t = reader.nextInt();
while(t>0){
t--;
double n = reader.nextDouble(), h = reader.nextDouble();
for(double i = 1; i < n; i++){
double p = i/n;
double curh = h*(Math.sqrt(p));
System.out.printf("%.6f ",curh);
}
System.out.println("");
}
reader.close();
}
}