fork download
  1. #include <iostream>
  2. #include <cstdio>
  3. #include <algorithm>
  4. using namespace std;
  5.  
  6. int main() {
  7. int a, b, c, d, e, m;
  8. scanf("%d%d%d%d%d", &a, &b, &c, &d, &e);
  9. c/=2, d/=7, e/=4;
  10. m=min(a, b);
  11. m=min(m, c);
  12. m=min(m, d);
  13. m=min(m, e);
  14. printf("%d", m);
  15. return 0;
  16. }
Success #stdin #stdout 0s 3300KB
stdin
2 4 6 8 10
stdout
1