β The high median paradigm (Contest)
The high median paradigm (Contest) easy Time Limit: 2 sec Memory Limit: 128000 kB
```java
import java.io.*; // for handling input/output
import java.util.*; // contains Collections framework
// don't change the name of this class
// you can add inner classes if needed
class Main {
public static void main (String[] args) {
// Your code here
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int m = sc.nextInt();
if(n == 1){
System.out.print(m);
}else{
int mid = (int)Math.ceil((double)(n)/2);
mid--;
int median = m/(n-mid);
System.out.print(median);
}
}
}
```Last updated