题解列表

筛选

清晰高精度数字加法

摘要:解题思路:注意事项:参考代码://高精度数字相加#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 ……

python 线性筛法

摘要:解题思路:注意事项:参考代码:n=int(input()) ps=[True]*(n+1) p=[] for i in range(2,n+1):     if ps[i]:        ……

python来解一下

摘要:解题思路:while True: try: s=list(map(int,input().split())) n,m,items=s[0],s[1],s[2:] a=[i for……

2827:计算多项式的导函数

摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main {    public static void main(String[] args……