HDOJ 1587 Flowers(水题)

来源:互联网 发布:周杰伦官方淘宝店 编辑:程序博客网 时间:2024/06/05 23:58

HDACM 1587

import java.util.Scanner;public class Main{    public static void main(String[] args) {        Scanner sc= new Scanner(System.in);        while (sc.hasNext()) {            int n = sc.nextInt();            int m = sc.nextInt();            int min = Integer.MAX_VALUE;            while (n-->0) {                int f = sc.nextInt();                if (f<min) {                    min = f;                }            }            System.out.println(m/min);        }        sc.close();    }}