[编程入门]宏定义的练习-题解(C语言代码) 摘要:#include #define yu(a,b) t=a%b; #include int main() { int a,b,t,c; scanf("%d%d",&a,&b); c…… 题解列表 2019年12月04日 0 点赞 1 评论 1874 浏览 评分:8.0
[编程入门]宏定义的练习-题解(Python代码) **代码如下:**x=list(map(int,input().split()))s=x[0]%x[1]print(s)**不太明白宏是什么可能python里面没有只能投机取巧了。** 题解列表 2019年12月03日 0 点赞 2 评论 2904 浏览 评分:8.8
[编程入门]宏定义的练习-题解(C语言代码) 摘要: #include //#include "Header.h" #define PI 3.14159 #define ABS(x) ((x)>=0?(x):(-x…… 题解列表 2019年11月03日 0 点赞 0 评论 991 浏览 评分:0.0
[编程入门]宏定义的练习-题解(C语言代码) 定义函数 #include#includeintyushu(inta,intb){intsum;sum=a%b;returnsum;}intmain(){intx,y,ans;scanf("%d%d",&x,&y);ans=yushu(x,y);printf("%d\n",ans);return0;} 题解列表 2019年06月13日 0 点赞 0 评论 1205 浏览 评分:0.0
[编程入门]宏定义的练习 与输入顺序无关(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define sq(m,n) m-(m/n)*nint main(){ int x,y,sq,temp; scanf("%d%d",&…… 题解列表 2019年05月11日 0 点赞 0 评论 1196 浏览 评分:0.0
[编程入门]宏定义的练习 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define fun(a,b) t=a%b;int main(){ int a,b,t; scanf("%d",&a); scanf(…… 题解列表 2019年05月04日 0 点赞 0 评论 1463 浏览 评分:0.0
[编程入门]宏定义的练习 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #define R(a,b) a%b int main() { int a,b,rem; scanf("…… 题解列表 2019年05月03日 0 点赞 0 评论 1348 浏览 评分:0.0
[编程入门]宏定义的练习 (C语言代码)。。。。 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define N(x,y) t=x%y;int main(){ int x,y,t; scanf("%d%d",&x,&y); N(x…… 题解列表 2019年05月01日 0 点赞 0 评论 1024 浏览 评分:0.0
[编程入门]宏定义的练习 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define qy(a,b) a%bint main(){int a,b; scanf("%d %d",&a,&b); p…… 题解列表 2019年04月22日 2 点赞 0 评论 1317 浏览 评分:0.0
[水]宏定义的练习 (C++代码) 摘要:解题思路: 求余数?翻译一下就是求余注意事项: 注意点: 求余只能是整数,当然题目中也说明了,所以变量只能开int参考代码:#include<bits/stdc++.h>using …… 题解列表 2019年04月16日 0 点赞 0 评论 1117 浏览 评分:0.0