CSP-201709-1-打酱油 解题代码 #include<iostream> using namespace std;int n, num;int main() { cin >> n;if (n / 50 != 0){num += 7 * (n / 50);n %= 50;}if (n / 30 != 0){num += 4 * (n / 30);n %= 30;}if (n / 10 != 0) num += (n / 10);cout << num;return 0; }