题解列表

筛选

《第几天》题解

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>int main(){    int year,month,Day;    while(scan……

简单却易错的hello world!

解题思路:此题只有输出,使用printf函数注意事项:观察体型有三行,要使用三个printf函数且每一个函数都要用到转行符\n并且*的个数不用一个一个数,要从题目上复制到代码中,不然是易错题参考代码:#includeintmain(){printf("****************

1069: 二级C语言-寻找矩阵最值

摘要:解题思路:1.符合条件的情况下输入正确的值              2.循环找出最大的数              3.根据找出的最大的数输出对应下标和该元素注意事项:1.注意n的取值范围    &nb

成绩归类 小试牛刀

摘要:```c #include int main() { int a=0,b=0,c=0,x;/*a:优秀的学生人数,b:合格的学生人数,c:不及格的学生人数*/ scanf("%d",&x……

C语言训练-最大数问题-----详解!!!-----【Python】

解析:数入一组数中判断是否有-1,将-1前的数放入到列表n中,如果没有-1将循环执行t.extend扩充列表,直到有-1时跳出循环。最后用max函数求出最大值。```pythont=list(map(int,input().split()))n=[]a=0whileTrue:foriint:ifi!=

正则表达式 快速切片

摘要:解题思路:注意事项:参考代码:import resm=0try:    while True:        s = input()        if len(s) == 0:           ……

非常短,可以看看

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int a;    while(~scanf("%d", &a))printf("%c",a);    r……

虽然简单,但要认真做

摘要:解题思路:注意事项:参考代码:a,b=map(int,input().split())c=0for i in range(a,b+1):    if i%3==1 and i%5==3:       ……

1676:链表的基本操作

#include#include#includetypedefstructlist{intdata;structlist*next;}List;List*CreatList(intn){inti;List*p,*head;head=(List*)malloc(sizeof(List));head->n