编写题解 1072: 汽水瓶(可以用递归 解决) 摘要:解题思路:简单递归注意事项:参考代码:#include<iostream>using namespace std;int get_num(int n){ int sum =0; if(n…… 题解列表 2024年05月09日 0 点赞 0 评论 133 浏览 评分:0.0
记忆化搜索 摘要:#include<bits/stdc++.h> using namespace std; const int N=310; int dx[] = {-1, 0, 1, 0}; int dy[]…… 题解列表 2024年05月09日 0 点赞 0 评论 268 浏览 评分:9.9
编写题解 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 评论 246 浏览 评分:9.9
编写题解 1031: [编程入门]自定义函数之字符串反转 摘要:import java.util.Scanner;public class Main { public static void main(String[] args) { Scan…… 题解列表 2024年05月09日 0 点赞 0 评论 221 浏览 评分: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 评论 586 浏览 评分:9.9
自定义函数处理最大公约数与最小公倍数 摘要:解题思路:题目要求要建函数,所以得知道怎么去建立函数,再考虑如何去求解,对于小白来说,解题的思路就是建立函数——建立主函数——调用函数注意事项:参考代码:#include<stdio.h>int gb…… 题解列表 2024年05月10日 0 点赞 0 评论 277 浏览 评分:0.0
Python 模拟解决[100分] 摘要:解题思路:模拟法注意事项:参考代码: n = int(input()) nums = list(map(int,input().split())) res = 0 def add_(n…… 题解列表 2024年05月10日 0 点赞 0 评论 326 浏览 评分: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 评论 386 浏览 评分:0.0
无聊的星期六 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ float x=0; scanf("%f",&x); printf("%.2f",(x < …… 题解列表 2024年05月11日 0 点赞 0 评论 451 浏览 评分:0.0
无聊的星期六 摘要:解题思路:注意事项:参考代码:slen=int(input()) print(sum(int(input()) for i in range(slen))//slen)…… 题解列表 2024年05月11日 0 点赞 0 评论 447 浏览 评分:0.0