题解 1037: [编程入门]宏定义的练习 摘要:##思路 `a%b`即可。 ##代码 ```cpp #include using namespace std; int main(){ int a,b; cin>>a>>b; …… 题解列表 2024年02月07日 0 点赞 1 评论 246 浏览 评分:9.9
c语言的宏定义 摘要:解题思路:根据宏定义的解释,再了解逻辑式注意事项:别忘记定义余数;参考代码:#include<stdio.h>#define chan(a,b) c=a%b;int main(){ int a,…… 题解列表 2024年01月28日 0 点赞 0 评论 90 浏览 评分:0.0
宏定义求解取余 摘要:解题思路:直接使用宏定义求解即可注意事项:参考代码:#include<iostream>using namespace std;#define dfs (a%b)int main(){ int …… 题解列表 2024年01月21日 0 点赞 0 评论 148 浏览 评分:0.0
懒懒的做法 摘要: 解题思路:求余数用 %注意事项:(+-)a%b=(+-)ca%(-+b)=c参考代码: #include<stdio.h> #define N(a,b) a%b int main…… 题解列表 2023年12月23日 0 点赞 0 评论 104 浏览 评分: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 评论 108 浏览 评分: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 评论 120 浏览 评分: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 评论 107 浏览 评分:0.0
python编写a%b 摘要:解题思路:跟a+b一样的思路只是改运算符,具体注意事项参照a+b参考代码:while True: try: a,b=map(int,input().strip().split()) print(a…… 题解列表 2023年11月13日 0 点赞 0 评论 162 浏览 评分:0.0
宏定义的练习 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define Division(a,b) (a)%(b)int main(){ int a,b; scanf("%d %d"…… 题解列表 2023年10月15日 0 点赞 0 评论 118 浏览 评分:0.0
超简单代码 摘要:解题思路:宏定义 a%b得到答案即可注意事项:参考代码:#include<iostream>using namespace std;#define s(a,b) a%b;//宏定义规则int main…… 题解列表 2023年09月14日 0 点赞 0 评论 443 浏览 评分:9.9