fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. double a,b,c,d,e,f,g,h,i,j;
  6.  
  7. int main()
  8. {
  9. cin>>a,b,c,d,e,f,g,h,i,j;
  10. if ((a<=b) && (a<=c) && (a<=d) && (a<=e) && (a<=f) && (a<=g) && (a<=h) && (a<=i) && (a<=j))
  11. cout << "1" << endl;
  12. else
  13. if ((b<=c) && (b<=d) && (b<=e) && (b<=f) && (b<=g) && (b<=h) && (b<=i) && (b<=j))
  14. cout << "2" << endl;
  15. else
  16. if ((c<=d) && (c<=e) && (c<=f) && (c<=g) && (c<=h) && (c<=i) && (c<=j))
  17. cout << "3" << endl;
  18. else
  19. if ((d<=e) && (d<=f) && (d<=g) && (d<=h) && (d<=i) && (d<=j))
  20. cout << "4" << endl;
  21. else
  22. if ((e<=f) && (e<=g) && (e<=h) && (e<=i) && (e<=j))
  23. cout << "5" << endl;
  24. else
  25. if ((f<=g) && (f<=h) && (f<=i) && (f<=j))
  26. cout << "6" << endl;
  27. else
  28. if ((g<=h) && (g<=i) && (g<=j))
  29. cout << "7" << endl;
  30. else
  31. if ((h<=i) && (h<=j))
  32. cout << "8" << endl;
  33. else
  34. if (i<=j)
  35. cout << "9" << endl;
  36. else
  37. cout << "10" << endl;
  38. return 0;
  39. }
Success #stdin #stdout 0s 15240KB
stdin
3
4
5
78
6
90
8
6
7
9
stdout
2