
import java.util.Scanner;
public class Printer {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int statues = sc.nextInt();
System.out.println(1 + (int)Math.ceil(Math.log(statues) / Math.log(2)));
}
}'Algorithms and Data Structures > Coding Practices' 카테고리의 다른 글
| AlgoExpert Product Sum (0) | 2022.07.15 |
|---|---|
| AlgoExpert Fibonacci (0) | 2022.07.15 |
| LeetCode 15. 3Sums (0) | 2022.07.14 |
| AlgoExpert Remove Duplicates from LinkedList (0) | 2022.07.14 |
| AlgoExpert Tandem Bike (0) | 2022.07.14 |