python来解一下 摘要:解题思路:while True: try: s=list(map(int,input().split())) n,m,items=s[0],s[1],s[2:] a=[i for…… 题解列表 2023年12月13日 0 点赞 0 评论 214 浏览 评分:6.0
python 线性筛法 摘要:解题思路:注意事项:参考代码:n=int(input()) ps=[True]*(n+1) p=[] for i in range(2,n+1): if ps[i]: …… 题解列表 2023年12月13日 0 点赞 0 评论 392 浏览 评分:9.9
c代码记录之二进制转换(无二进制输出格式,长除法将十进制转换成二进制) 摘要: #include int main() { int num[32],n,i,m,j; while(~scanf("%d",&n)){ …… 题解列表 2023年12月13日 0 点赞 0 评论 256 浏览 评分:0.0
统计2出现的次数(python简单方法) 摘要:解题思路:用for循环将数字已字符串的形式添加到列表中,用count函数统计2的数量参考代码:L, R = map(int, input().split()) num_list = [] for …… 题解列表 2023年12月13日 0 点赞 0 评论 226 浏览 评分:0.0
画矩形(python) 摘要:解题思路:用两个循环打出长宽的边,再用if判断是否为实心参考代码:length, width, symbol, solid = map(str, input().split()) for i in …… 题解列表 2023年12月13日 0 点赞 0 评论 226 浏览 评分:9.9
[编程入门]结构体之成绩统计2 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <stdlib.h> typedef struct students{ char *id; cha…… 题解列表 2023年12月13日 0 点赞 0 评论 185 浏览 评分:9.9
宏定义之找最大数 摘要:解题思路:【LP】宏定义max函数进行解题for循环输出两行注意事项:#define max(a,b) ((a)>(b)?(a):(b)我们使用宏定义来实现了 max 函数和 count 宏。max …… 题解列表 2023年12月13日 0 点赞 0 评论 338 浏览 评分:9.9
c代码记录之整数的尾除-C 摘要: #include int main() { int m,n,i; while(1){ scanf("%d%d"…… 题解列表 2023年12月13日 0 点赞 0 评论 236 浏览 评分:0.0
清晰高精度数字加法 摘要:解题思路:注意事项:参考代码://高精度数字相加#include#includechar n[1001], m[1001];int a[1001], b[1001], c[1001];int main…… 题解列表 2023年12月13日 0 点赞 3 评论 238 浏览 评分:9.9
c代码记录之加密的病历单 摘要: #include #include int main() { char str[1000];//说好的长度小于50呢? int…… 题解列表 2023年12月13日 0 点赞 0 评论 232 浏览 评分:0.0