201709-1打酱油

#include<iostream>
using namespace std;

int main()
{
	int n;
	cin >> n;
	int t = n / 50;
	int sum = t * 7;
	n %= 50;
	t = n / 30;
	sum += t * 4;
	n %= 30;
	t = n / 10;
	sum += t;
	cout << sum << endl;;
	return 0;
}
posted @ 2019-08-16 18:30  归根复命  阅读(110)  评论(0编辑  收藏  举报