: 蓝桥杯2022年第十三届省赛真题-刷题统计——C代码(超短) 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main(){ long long a,n,sum=0,b,i=1; …… 题解列表 2024年03月10日 0 点赞 0 评论 340 浏览 评分:0.0
蓝桥杯2022年第十三届省赛真题-修剪灌木 摘要:解题思路:注意事项:参考代码:#include <stdio.h>long long max(int a,int b){ if(a>b) return a; else return b;}int ma…… 题解列表 2024年03月10日 0 点赞 0 评论 314 浏览 评分:0.0
编写题解 2061: [STL训练]周瑜的反间计-二分 摘要:解题思路:为了防止超时,使用二分排序二分即可注意事项:注意每组数据后要输出空行YES和NO要大写首先要判断数据是否大于a[n]或小于a[1]l < r-1否则会死循环要判断a[l]和a[r]参考代码:…… 题解列表 2024年03月10日 0 点赞 0 评论 353 浏览 评分:8.0
不知道为什么其他语言错一个 摘要:参考代码:#include <stdio.h> #define MAX_N 3500 #define MAX_M 12880 int max(int a, int b) { r…… 题解列表 2024年03月10日 0 点赞 0 评论 381 浏览 评分:0.0
编写题解 2346: 信息学奥赛一本通T1433-愤怒的牛-二分 摘要:解题思路:使用二分详见代码注意事项:无参考代码:#include <bits/stdc++.h> using namespace std; int a[1000100]; int n,m; b…… 题解列表 2024年03月10日 1 点赞 0 评论 956 浏览 评分:9.9
1011: [编程入门]最大公约数与最小公倍数 摘要:解题思路:根据最大公约数和最小公倍数之积为两数之积这里原理,可以先求两者其中一个即可,故本题可利用求最大公约数间接得最小公倍数。注意事项:文字部分用于代码唯美,可删除用于提交作业/参考代码:#incl…… 题解列表 2024年03月10日 0 点赞 0 评论 328 浏览 评分:9.9
过河卒JAVA---笨笨的方法 摘要:解题思路:注意事项:参考代码: import java.util.Scanner; // 导入Scanner类用于接收用户输入 public class Main { static …… 题解列表 2024年03月10日 0 点赞 0 评论 500 浏览 评分:0.0
c语言 冒泡排序解决 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,m; scanf("%d%d",&n,&m); int a=0; …… 题解列表 2024年03月10日 0 点赞 0 评论 352 浏览 评分:9.9
C++数组存储三角形简易动态规划版本 摘要:# 动态转移方程 ``` dfs[i][j] += max(dfs[i+1][j], dfs[i+1][j+1]); ``` # 参考图 { //d[i]代表第i分钟可以跑的路程 …… 题解列表 2024年03月10日 2 点赞 0 评论 480 浏览 评分:10.0