本题链接:201709-1 打酱油
本博客给出本题截图:
C++
#include <iostream> using namespace std; int n; int main() { cin >> n; int res = 0; while(n >= 50) { res += 7; n -= 50; } while(n >= 30) { res += 4; n -= 30; } res += n / 10; cout << res << endl; return 0; }
总结
水题,不解释