无参宏定义 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define m a%bint main(){ int a,b; scanf("%d%d",&a,&b); printf("%d",m…… 题解列表 2023年03月10日 0 点赞 0 评论 492 浏览 评分:0.0
[编程入门]宏定义的练习 摘要://a b两个数 #include<stdio.h> #define sum a%b int main(){ int a,b; scanf("%d%d",&a,&b); …… 题解列表 2023年06月03日 0 点赞 0 评论 443 浏览 评分:0.0
1037题: [宏定义的练习 摘要:# 自己写代码 ```c #include #include #define qiuyu(a,b) t=a/b; int main() { int a,b,t; scanf("…… 题解列表 2023年07月03日 0 点赞 0 评论 443 浏览 评分:0.0
宏定义的练习 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define Division(a,b) (a)%(b)int main(){ int a,b; scanf("%d %d"…… 题解列表 2023年10月15日 0 点赞 0 评论 482 浏览 评分:0.0
python编写a%b 解题思路:跟a+b一样的思路只是改运算符,具体注意事项参照a+b参考代码:whileTrue:try:a,b=map(int,input().strip().split())print(a%b)except:break 题解列表 2023年11月13日 0 点赞 0 评论 537 浏览 评分:0.0
这题简单吧 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c; scanf("%d%d",&a,&b); c=a%b; p…… 题解列表 2023年11月28日 0 点赞 0 评论 434 浏览 评分:0.0
c语言宏定义求余数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>#define ret(a,b) t=a%b;int main(){ int a,b,t; …… 题解列表 2023年12月13日 0 点赞 0 评论 606 浏览 评分:0.0
C++宏练习 简洁易懂 摘要:解题思路:注意事项:参考代码:#include <iostream>#define yu(a,b) (a%b) using namespace std;int main(){ int a,b,c; c…… 题解列表 2023年12月18日 0 点赞 0 评论 644 浏览 评分:0.0
懒懒的做法 摘要: 解题思路:求余数用 %注意事项:(+-)a%b=(+-)ca%(-+b)=c参考代码: #include<stdio.h> #define N(a,b) a%b int main…… 题解列表 2023年12月23日 0 点赞 0 评论 404 浏览 评分:0.0
宏定义求解取余 摘要:解题思路:直接使用宏定义求解即可注意事项:参考代码:#include<iostream>using namespace std;#define dfs (a%b)int main(){ int …… 题解列表 2024年01月21日 0 点赞 0 评论 485 浏览 评分:0.0