mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
997ec50f19
1700-1799
25 lines
419 B
C++
25 lines
419 B
C++
#include<stdio.h>
|
|
#include<algorithm>
|
|
#include<math.h>
|
|
#include<iostream>
|
|
#include<string.h>
|
|
using namespace std;
|
|
int main()
|
|
{
|
|
int m;
|
|
int n,v;
|
|
while(scanf("%d %d",&n,&v),n,v)
|
|
{
|
|
int i;
|
|
m=0;
|
|
int a;
|
|
for(i=0;i<n;i++)
|
|
{
|
|
scanf("%d",&a);
|
|
m=max(a,m);
|
|
}
|
|
printf("%.0lf\n",ceil(double(v)/m)*3);
|
|
}
|
|
return 0;
|
|
}
|