《第几天》题解 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>int main(){ int year,month,Day; while(scan…… 题解列表 2021年10月30日 0 点赞 0 评论 1533 浏览 评分:7.3
简单却易错的hello world! 解题思路:此题只有输出,使用printf函数注意事项:观察体型有三行,要使用三个printf函数且每一个函数都要用到转行符\n并且*的个数不用一个一个数,要从题目上复制到代码中,不然是易错题参考代码:#includeintmain(){printf("**************** 题解列表 2021年10月31日 0 点赞 0 评论 951 浏览 评分:7.3
1069: 二级C语言-寻找矩阵最值 摘要:解题思路:1.符合条件的情况下输入正确的值 2.循环找出最大的数 3.根据找出的最大的数输出对应下标和该元素注意事项:1.注意n的取值范围 &nb 题解列表 2021年10月31日 0 点赞 0 评论 816 浏览 评分:7.3
[入门]用if-elif-else找出a,b,c中找出最大值------Python 摘要:解题思路:a>b时比较a>c成立时a大否则c大,a>b不成立时判断b>c成立时b大否则c大注意事项:参考代码:a,b,c=map(int,input().split())if a>b: if a…… 题解列表 2021年11月02日 0 点赞 0 评论 1379 浏览 评分:7.3
成绩归类 小试牛刀 摘要:```c #include int main() { int a=0,b=0,c=0,x;/*a:优秀的学生人数,b:合格的学生人数,c:不及格的学生人数*/ scanf("%d",&x…… 题解列表 2021年11月05日 0 点赞 1 评论 1341 浏览 评分:7.3
C语言训练-最大数问题-----详解!!!-----【Python】 解析:数入一组数中判断是否有-1,将-1前的数放入到列表n中,如果没有-1将循环执行t.extend扩充列表,直到有-1时跳出循环。最后用max函数求出最大值。```pythont=list(map(int,input().split()))n=[]a=0whileTrue:foriint:ifi!= 题解列表 2021年11月05日 0 点赞 3 评论 760 浏览 评分:7.3
正则表达式 快速切片 摘要:解题思路:注意事项:参考代码:import resm=0try: while True: s = input() if len(s) == 0: …… 题解列表 2021年11月08日 0 点赞 0 评论 1213 浏览 评分:7.3
非常短,可以看看 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a; while(~scanf("%d", &a))printf("%c",a); r…… 题解列表 2021年11月08日 0 点赞 0 评论 1265 浏览 评分:7.3
虽然简单,但要认真做 摘要:解题思路:注意事项:参考代码:a,b=map(int,input().split())c=0for i in range(a,b+1): if i%3==1 and i%5==3: …… 题解列表 2021年11月08日 0 点赞 0 评论 599 浏览 评分:7.3
1676:链表的基本操作 #include#include#includetypedefstructlist{intdata;structlist*next;}List;List*CreatList(intn){inti;List*p,*head;head=(List*)malloc(sizeof(List));head->n 题解列表 2021年11月09日 0 点赞 0 评论 726 浏览 评分:7.3