Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
485 B
0
Indexable
Never
#include <iostream>
#include <cmath>
using namespace std;

int main()
{
	float a, b,c;
	cin >> a >> b;
	c = (b / a)*100;
	if (c == 0) {
		cout << "0";
		return 0;
	}
	if (1<=c&&c<=10) {
		cout << "1";
		return 0;
	}
	if (11 <= c&&c <= 50) {
		cout << "2";
		return 0;
	}
	if (51 <= c&&c <= 70) {
		cout << "3";
		return 0;
	}
	if (71 <= c&&c <= 84) {
		cout << "4";
		return 0;
	}
	if (85 <= c &&c<= 100) {
		cout << "5";
		return 0;
	}

	
	


}