Untitled
unknown
plain_text
2 years ago
653 B
21
Indexable
#include <iostream>
using namespace std;
int main()
{
int c, x;
cin >> c >> x;
if (x == 0)
{
cout << "0";
return 0;
}
if (x < (c * 0.105) && x > 0)
{
cout << "1";
return 0;
}
if (x < (c * 0.505) && x => (c * 0.105))
{
cout << "2";
return 0;
}
if (x < (c * 0.705) && x => (c * 0.505))
{
cout << "3";
return 0;
}
if (x < (c * 0.845) && x => (c * 0.705))
{
cout << "4";
return 0;
}
if (x <= c && x => (c * 0.845))
{
cout << "5";
return 0;
}
}Editor is loading...