[编程入门]结构体之成绩统计2 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <stdlib.h> typedef struct students{ char *id; cha…… 题解列表 2023年12月13日 0 点赞 0 评论 345 浏览 评分:9.9
画矩形(python) 摘要:解题思路:用两个循环打出长宽的边,再用if判断是否为实心参考代码:length, width, symbol, solid = map(str, input().split()) for i in …… 题解列表 2023年12月13日 0 点赞 0 评论 442 浏览 评分:9.9
统计2出现的次数(python简单方法) 摘要:解题思路:用for循环将数字已字符串的形式添加到列表中,用count函数统计2的数量参考代码:L, R = map(int, input().split()) num_list = [] for …… 题解列表 2023年12月13日 0 点赞 0 评论 371 浏览 评分:0.0
c代码记录之二进制转换(无二进制输出格式,长除法将十进制转换成二进制) 摘要: #include int main() { int num[32],n,i,m,j; while(~scanf("%d",&n)){ …… 题解列表 2023年12月13日 0 点赞 0 评论 458 浏览 评分:0.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 评论 541 浏览 评分:9.9
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 评论 411 浏览 评分:6.0
2827:计算多项式的导函数 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args…… 题解列表 2023年12月13日 0 点赞 0 评论 480 浏览 评分:0.0
结构体之成绩记录,中规中矩 摘要:解题思路:注意事项:注意格式的输出参考代码:#include<stdio.h>int main(){ struct LC { char a[10]; char b[10]; int c[3]; …… 题解列表 2023年12月13日 0 点赞 0 评论 638 浏览 评分:0.0
编写题解 2990: 十进制到八进制 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;import java.math.BigInteger;public class Main { public st…… 题解列表 2023年12月13日 0 点赞 11 评论 614 浏览 评分:5.6
c代码记录之剔除相关数(不用指针感觉写的好麻烦,太多循环与排序) 摘要:整体思路: 1.将每个整数的每位数字从小到大排序好,便于整数比较或字符串比较(这里用的字符串比较) 2.创建二维字符串数组str,盛放排序好的整数串 3.创建一维数组num,盛放原数,下标和串数…… 题解列表 2023年12月13日 0 点赞 0 评论 400 浏览 评分:0.0