明明的随机数(简单解法) 摘要:解题思路:分为三步:第一步:得到数组数据第二步:去除重复的数字,用101表示第三步:把第一组去重后的数据放入第二组第四步:排序第五步:输出数组注意事项:参考代码:#include<iostream>u…… 题解列表 2024年05月11日 0 点赞 0 评论 320 浏览 评分:0.0
[编程入门]温度转换 摘要:解题思路:使用公式进行转换注意事项:注意scanf("%lf",&f);或者scanf("%f",&f);如果你前面定义的f是用double类型的话,就应该用%lf格式,如果f是float类型的话,就…… 题解列表 2024年05月11日 0 点赞 0 评论 774 浏览 评分:8.7
无聊的星期六 摘要:解题思路:注意事项:参考代码:slen=int(input()) print(sum(int(input()) for i in range(slen))//slen)…… 题解列表 2024年05月11日 0 点赞 0 评论 480 浏览 评分:0.0
无聊的星期六 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ float x=0; scanf("%f",&x); printf("%.2f",(x < …… 题解列表 2024年05月11日 0 点赞 0 评论 480 浏览 评分:0.0
信息学奥赛一本通T1317-组合的输出 摘要:参考代码:#include<bits/stdc++.h>using namespace std;int n,r;int a[25];void dfs(int step,int flag)//step表…… 题解列表 2024年05月10日 1 点赞 0 评论 408 浏览 评分:0.0
Python 模拟解决[100分] 摘要:解题思路:模拟法注意事项:参考代码: n = int(input()) nums = list(map(int,input().split())) res = 0 def add_(n…… 题解列表 2024年05月10日 0 点赞 0 评论 357 浏览 评分:0.0
自定义函数处理最大公约数与最小公倍数 摘要:解题思路:题目要求要建函数,所以得知道怎么去建立函数,再考虑如何去求解,对于小白来说,解题的思路就是建立函数——建立主函数——调用函数注意事项:参考代码:#include<stdio.h>int gb…… 题解列表 2024年05月10日 0 点赞 0 评论 302 浏览 评分:0.0
输入1行句子(不多于200个单词,每个单词长度不超过100),包含字母、空格、逗号、引号等。单词由至少一个连续的字母构成,空格和逗号都是单词间的间隔。 试输出第1个最长的单词和第1个最短单词。 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int i,j,len,maxlen=-1,minlen=1000,m…… 题解列表 2024年05月09日 0 点赞 0 评论 612 浏览 评分:9.9
编写题解 1031: [编程入门]自定义函数之字符串反转 摘要:import java.util.Scanner;public class Main { public static void main(String[] args) { Scan…… 题解列表 2024年05月09日 0 点赞 0 评论 247 浏览 评分:0.0
编写题解 2804: 与指定数字相同的数的个数题解 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){int n,m,sum=0;cin>>n>>m; int d[…… 题解列表 2024年05月09日 0 点赞 0 评论 268 浏览 评分:9.9