MCPcopy Create free account
hub / github.com/SR-Sunny-Raj/Hacktoberfest2021-DSA / Codechef

Class Codechef

32. Java Programs/codeChefProblem_Bolt.java:8–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6
7/* Name of the class has to be "Main" only if the class is public. */
8class Codechef
9{
10 public static void main (String[] args) throws java.lang.Exception
11 {
12 // your code goes here
13 Scanner sc=new Scanner (System.in);
14 int t=sc.nextInt();
15 while(t-- >0)
16 {
17 double a=sc.nextDouble();
18 double b=sc.nextDouble();
19 double c=sc.nextDouble();
20 double d=sc.nextDouble();
21 double ans=100/(a*b*c*d);
22 double ret=(double) Math.round(ans*100)/100;
23 if(ret>=9.58)
24 {
25 System.out.println("NO");
26 }
27 else
28 {
29 System.out.println("YES");
30 }
31 }
32 }
33}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected