题解 1037: [编程入门]宏定义的练习 摘要:##思路 `a%b`即可。 ##代码 ```cpp #include using namespace std; int main(){ int a,b; cin>>a>>b; …… 题解列表 2024年02月07日 0 点赞 1 评论 276 浏览 评分:9.9
用函数写的 摘要:解题思路:注意事项:参考代码:def get_sum(a=4,b=3): a,b =map(int,input().split()) sum = a%b print(sum)get_…… 题解列表 2024年06月02日 0 点赞 0 评论 296 浏览 评分:9.9
编写题解 1037: [编程入门]宏定义的练习 摘要:```c #include #define compute(a,b) result=a%b; int main() { int a,b,result; scanf("%d %d",&a…… 题解列表 2024年06月04日 0 点赞 0 评论 503 浏览 评分:9.9
使用宏定义写取余运算 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;// 定义求余数的宏// 注意:除数b不能为0,使用时需确保#define MO…… 题解列表 2025年04月09日 1 点赞 0 评论 155 浏览 评分:10.0