[编程入门]宏定义的练习-题解(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
编写题解 1037: [编程入门]宏定义的练习--解题 摘要:解题思路:注意事项:参考代码:#include <iostream>#define REMAINDER(num1, num2) (num1 % num2)using namespace std;int…… 题解列表 2022年03月08日 0 点赞 0 评论 129 浏览 评分:0.0
【1037题】python入门题之宏定义的练习(方法类似1000题简单的a+b) 摘要:解题思路:首先取余就是a%b 就如同相加是a+b一样,相除是a、b一样,map的描述 map() 会根据提供的函数对指定序列做映射。第一个参数 function 以参数序列中的每一个元素调用 fun…… 题解列表 2022年04月11日 0 点赞 0 评论 299 浏览 评分:0.0
[编程入门]宏定义的练习 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;long long a,b;int main(){ cin>>a>>b; co…… 题解列表 2022年05月06日 0 点赞 0 评论 125 浏览 评分:0.0