[编程入门]宏定义的练习-题解(C语言代码) 摘要:参考代码:#include<stdio.h>#include<stdlib.h>#define divisor(a,b) t=a%bint main(){ int a,b,t; scanf…… 题解列表 2020年12月22日 0 点赞 0 评论 240 浏览 评分:0.0
[编程入门]宏定义的练习-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define swap(a,b) t=a%b;int main(){ int a,b,t; scanf("%d %d",&a,&b);…… 题解列表 2021年01月30日 0 点赞 0 评论 274 浏览 评分:0.0
[编程入门]宏定义的练习-题解(C语言代码) 摘要:```c #include #define fun(a,b) a%b int main(void) { int a,b; scanf("%d%d",&a,&b); …… 题解列表 2021年02月07日 0 点赞 0 评论 197 浏览 评分:0.0
[编程入门]宏定义的练习-题解(Java代码) 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Main { public static void main(String[] arg…… 题解列表 2021年02月14日 0 点赞 0 评论 348 浏览 评分:0.0
python 超简单写法 摘要:解题思路:注意事项:注意题目是求余数 python的/是除 %求余参考代码:a,b=map(int,input().strip().split())print(a%b)…… 题解列表 2021年05月01日 0 点赞 0 评论 369 浏览 评分:0.0
题解 1037: [编程入门]宏定义的练习 摘要:解题思路:注意事项:参考代码:a,b=map(int,input().split())if(a>b): print(a%b)else: print(b%a)…… 题解列表 2021年08月02日 0 点赞 0 评论 330 浏览 评分:0.0
1037 可以的,C语言 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main (){ int n,x,y;scanf("%d %d",&x,&y); n=x%y;printf("%d",n); r…… 题解列表 2021年11月05日 0 点赞 0 评论 212 浏览 评分:0.0
宏定义的练习-C语言 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>#define area a%bint main(){ int a,b; scanf("%d…… 题解列表 2021年12月13日 0 点赞 0 评论 236 浏览 评分:0.0
C++宏定义求余数 摘要:解题思路:#define remainder a%b注意事项:暂时不明参考代码:#include<iostream>#include<string>using namespace std;#defin…… 题解列表 2021年12月28日 0 点赞 0 评论 415 浏览 评分:0.0
1037宏定义的练习 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b; int c; scanf("%d %d",&a,&b); c=a%b; printf("%d\…… 题解列表 2022年01月03日 0 点赞 0 评论 360 浏览 评分:0.0