[编程入门]数组插入处理-题解(Python代码) 摘要:解题思路:注意事项: 读入一行数据先存到列表中即可。参考代码:str=input()a=str.split()b=int(input())if b<int(a[0]): a.insert(0,b…… 题解列表 2020年09月12日 0 点赞 0 评论 1817 浏览 评分:0.0
[编程入门]结构体之成绩统计2-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>struct score{char number[20];char name[20];int g…… 题解列表 2020年09月12日 0 点赞 0 评论 810 浏览 评分:0.0
巨大的数-题解(C++代码) 摘要:解题思路: 很佛系的一道题~注意事项:参考代码:#include<bits/stdc++.h> using namespace std; // 取num的个位数 inline …… 题解列表 2020年09月12日 0 点赞 0 评论 893 浏览 评分:0.0
二级C语言-计算素数和-题解(C语言代码) 摘要:解题思路:写出一个素数判断函数(每次处理一个数据),之后用for循环遍历从m到n的所有数,并且把所有素数全都用一个sum加起来,输出即可。 注意事项:素数判断函数ispri…… 题解列表 2020年09月12日 0 点赞 0 评论 996 浏览 评分:0.0
A+B for Input-Output Practice (III)-题解(C语言代码) 摘要:#include<stdio.h>int main(){ int a,b,p=1,i=0,cnt=0;int t[100]; while(p==1) { scanf("%d%d",&a,&b…… 题解列表 2020年09月13日 0 点赞 0 评论 783 浏览 评分:0.0
一元n次方程-题解(C++代码) 摘要:解题思路: 没啥好说的,注释很清楚了,string类的一些方法要多练习,百度 C++ string 就有教程了注意事项: 参考代码:#include<bits/stdc++…… 题解列表 2020年09月13日 0 点赞 0 评论 1093 浏览 评分:0.0
自动晾衣机-题解(C++代码) 摘要:解题思路: 很人类的思维,每次输入衣服长度后,更新status数组的值,随后记得加上一个空隔位注意事项: 最后一件衣服后面也加了一个空隔位,追求严谨的同学,最后多加一条语句…… 题解列表 2020年09月13日 0 点赞 0 评论 1165 浏览 评分:0.0
二级C语言-温度转换-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int ctof(int c);int main(){ int i,f; for(i=-100;i<=150;i+=5){ prin…… 题解列表 2020年09月13日 0 点赞 0 评论 935 浏览 评分:0.0
二级C语言-寻找矩阵最值-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n,a[6][6],b[2]={0,0}; int i,j,t; scanf("%d",&n); fo…… 题解列表 2020年09月13日 0 点赞 0 评论 757 浏览 评分:0.0
二级C语言-成绩归类-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n,t=1; int A,B,C; A=B=C=0; while(t){ scanf("%d",&n…… 题解列表 2020年09月13日 0 点赞 0 评论 838 浏览 评分:0.0