1047: [编程入门]报数问题(约瑟夫环) 摘要:解题思路: 数组、vector 及公式分别实现注意事项:参考代码:#include<iostream> using namespace std; const int N = 1e2 + 10; …… 题解列表 2024年05月08日 1 点赞 0 评论 178 浏览 评分:9.9
编写题解 2803: 整数的个数题解 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){int k,a=0,b=0,c=0; cin>>k; int …… 题解列表 2024年05月08日 0 点赞 0 评论 173 浏览 评分:9.9
蓝桥杯2024年第十五届省赛真题-封闭图形个数 摘要:# 自定义排序(结构体) ## 一、题目: >1、例如数字 1、2、3、5、7 都没有形成封闭图形,而数字 0、4、6、9 分别形成了 1 个封闭图形,数字 8 则形成了 2个封闭图形。 >…… 题解列表 2024年05月09日 1 点赞 0 评论 974 浏览 评分:9.9
记忆化搜索 摘要:#include<bits/stdc++.h> using namespace std; const int N=310; int dx[] = {-1, 0, 1, 0}; int dy[]…… 题解列表 2024年05月09日 0 点赞 0 评论 288 浏览 评分: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 评论 260 浏览 评分:9.9
输入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 评论 603 浏览 评分:9.9
计算矩阵边缘元素之和 摘要:```cpp #include using namespace std; typedef long long ll; const int N =1e3; int a[N][N]; int…… 题解列表 2024年05月12日 0 点赞 0 评论 300 浏览 评分:9.9
编写题解 2749: Hello, World! 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ cout <<"Hello, World!"; return …… 题解列表 2024年05月12日 0 点赞 0 评论 508 浏览 评分:9.9
java--study||O.o 摘要:参考代码:import java.util.Scanner; public class Main { public static void main(String[] args) { …… 题解列表 2024年05月12日 3 点赞 0 评论 396 浏览 评分:9.9
[编程入门]利润计算 摘要:解题思路:需要对不用利润,使用if分支来运行注意事项:审题清晰,对不同利润使用不同if分支参考代码:#include <stdio.h>int main() { int i; scanf(…… 题解列表 2024年05月13日 0 点赞 0 评论 281 浏览 评分:9.9