-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSolution_1654.java
More file actions
45 lines (45 loc) · 874 Bytes
/
Solution_1654.java
File metadata and controls
45 lines (45 loc) · 874 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//package baekjoon_1654;
//
//import java.util.*;
//import java.io.*;
//
//public class Solution_1654 {
//
// public static void main(String[]arg) throws IOException {
// BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
// StringTokenizer st=new StringTokenizer(br.readLine());
// int k,n;
// k=Integer.parseInt(st.nextToken());
// n=Integer.parseInt(st.nextToken());
// int [] arr=new int[k];
// long max=0;
//
// for(int i=0;i<k;i++) {
// int leng=Integer.parseInt(br.readLine());
// arr[i]=leng;
// if(max<leng)
// max=leng;
// }
// max++;
// long mid=0;
// long min=0;
//
// while(min<max) {
//
// mid=(max+min)/2;
//
// long count=0;
// for(int a:arr) {
// count+=a/mid;
// }
//
// if(count<n)
// max=mid;
// else
// min=mid+1;
// }
// System.out.println(min-1);
//
//
// }
//}