提交时间:2022-08-18 10:59:45
运行 ID: 55425
#include <bits/stdc++.h> using namespace std; int a[501]; inline long long Read() { register long long x=0,f=0; register char t=getchar(); while(t<'0'||t>'9')f^=(t=='-'),t=getchar(); while(t>='0'&&t<='9')x=(x<<3)+(x<<1)+(t^48),t=getchar(); return f?-x:x; } int main() { int Min=1e5,n=Read(),m=Read(),k=Read(); for(int j=1;j<=n;j++) { a[j]=Read(); if(a[j]<Min) Min=a[j]; } if(Min*m>k) { cout<<"0\n"; return 0; } else if(Min*m==k) { cout<<"1\n"; return 0; } return 0; }