提交时间:2025-12-26 14:21:33

运行 ID: 77517

#include <bits/stdc++.h> using namespace std; int main() { int a, b, c, d; cin >> a >> b; if (b != 0) { c = a / b; d = a % b; cout << c << " " << d << endl; } else { cout << "b 不能为零" << endl; } return 0; }