Skip to content

Commit 067ebd4

Browse files
authored
Create PATROL.java
1 parent b9a2fd4 commit 067ebd4

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

Codeshef/PATROL.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import java.util.Scanner;
2+
class Try {
3+
public static void main(String[] args) {
4+
Scanner scan = new Scanner(System.in);
5+
int t=scan.nextInt();
6+
while((t--)>0){
7+
double u,v,x,time;
8+
u=scan.nextDouble();
9+
v=scan.nextDouble();
10+
x=scan.nextDouble();
11+
time=(x/(u+v));
12+
System.out.println(time);
13+
}
14+
15+
}
16+
17+
}

0 commit comments

Comments
 (0)