#include using namespace std;

int main() { int X, A, B; cin >> X >> A >> B;

int count = 0;
for (int i = 1; i <= X / A; i++) {
    for (int j = 1; j <= X / B; j++) {
        if (i * A + j * B == X) {
            count++;
        }
    }
}

cout << count << endl;

return 0;

}


原文地址: https://www.cveoy.top/t/topic/ixOc 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录