编写题解 2787: 有一门课不及格的学生 摘要:解题思路:判断语句注意事项:判断他是否恰好有一门课不及格参考代码:ch, ma = map(int, input().split()) if ch < 60 and ma >= 60 : …… 题解列表 2024年03月06日 1 点赞 0 评论 771 浏览 评分:4.0
2868: 最长最短单词 摘要:解题思路:注意事项:参考代码:s = input().split() s1 = [len(i) for i in s] max = max(s1) min = min(s1) for i in…… 题解列表 2024年03月25日 0 点赞 0 评论 600 浏览 评分:4.0
两个for循环 摘要:解题思路:同时存在多个最多字符时要按字母表顺序输出,因此要创建一个26大小的整形数组,再与统计的最大数量max1比较数值相同时输出对应字符。注意事项:整型和字符之间的转换参考代码:#include<b…… 题解列表 2024年04月08日 0 点赞 0 评论 679 浏览 评分:4.0
我来解决1048: [编程入门]自定义函数之字符串拷贝 c语言代码 摘要:下面我会介绍"1048: [编程入门]自定义函数之字符串拷贝"的答案。至少要有一个n和m还有一个数组。然后开始输入(代码如下) scanf("%d",&n); scanf("%s",s…… 题解列表 2024年04月20日 0 点赞 0 评论 472 浏览 评分:4.0
循环入门练习2 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main() { int i,sum=0; for(i=1;i<=1000;i++) { if(i%7…… 题解列表 2024年04月28日 1 点赞 0 评论 581 浏览 评分:4.0
2859: 忽略大小写的字符串比较 摘要:解题思路:注意事项:参考代码:a = input().strip()b = input().strip()c = a.upper()d = b.upper()if c == d: print("…… 题解列表 2024年08月01日 0 点赞 1 评论 539 浏览 评分:4.0
排序(n个数从小到大) 摘要: [========] #include void sort(int a[],int n) //定义一个排序函数sort { …… 题解列表 2024年08月23日 1 点赞 0 评论 813 浏览 评分:4.0
应该是最简洁了的-最强小队 摘要:解题思路:题意理解错了,以为是从一段区间中选取几个结果是一整段的,几行搞定注意事项:参考代码:#include<bits/stdc++.h>using namespace std;const int …… 题解列表 2024年11月18日 1 点赞 0 评论 893 浏览 评分:4.0
最普通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j,sum=0,sum2=0,a[3][3]; for(i=0;i<3;i++) …… 题解列表 2024年11月19日 1 点赞 0 评论 463 浏览 评分:4.0
最复杂的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>long f1(int a){ long y; y=(long)a*a; return y;}long f2(int …… 题解列表 2024年11月22日 0 点赞 0 评论 288 浏览 评分:4.0