For this Question: How many people must be there in a room to make the probability p such that at- least two people in the room have same birthday?The first line in the input contains the probability p.

<b>Constraints</b>
0 <= p < 1Print the number of person in the roomSample Input 
0.7

Sample Output 
30, I have written this Solution Code: import java.io.*;
import java.util.*;



class Main {
	public static void main (String[] args) {

					  Scanner sc=new Scanner(System.in);
					  double p=sc.nextDouble();
					  System.out.print((int)solve(p));
	}
	public static double solve(double p){
		return Math.ceil(Math.sqrt((2*365)*Math.log(1/(1-p))));
	}
}, In this Programming Language: Java, Now tell me if this Code is compilable or not?