Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
52506 lixiyuan 带余除法 C++ 通过 0 MS 240 KB 411 2024-10-07 19:18:55

Tests(1/1):


#include <iostream> using namespace std; int main() { int dividend, divisor; cin >> dividend >> divisor; if (divisor == 0) { cout << "Error: Division by zero is undefined." << endl; return 1; } int quotient = dividend / divisor; int remainder = dividend % divisor; cout << quotient << " " << remainder << endl; return 0; }


测评信息: