题解列表

筛选

c语言宏定义求余数

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>#define ret(a,b) t=a%b;int main(){    int a,b,t;    ……

清晰高精度数字加法

摘要:解题思路:注意事项:参考代码://高精度数字相加#include#includechar n[1001], m[1001];int a[1001], b[1001], c[1001];int main……

宏定义之找最大数

摘要:解题思路:【LP】宏定义max函数进行解题for循环输出两行注意事项:#define max(a,b) ((a)>(b)?(a):(b)我们使用宏定义来实现了 max 函数和 count 宏。max ……

画矩形(python)

摘要:解题思路:用两个循环打出长宽的边,再用if判断是否为实心参考代码:length, width, symbol, solid = map(str, input().split()) for i in ……

统计2出现的次数(python简单方法)

摘要:解题思路:用for循环将数字已字符串的形式添加到列表中,用count函数统计2的数量参考代码:L, R = map(int, input().split()) num_list = [] for ……