纯规律,不使用循环 摘要:解题思路:找到规律,不能被平分差的数的是 (x-2)%4 == 0, 然后判断 L,R中有多少个这样的数注意事项:参考代码:#include<bits/stdc++.h>#define ikun co…… 题解列表 2023年06月08日 0 点赞 1 评论 1175 浏览 评分:4.0
循环(就是一个01背包问题,大一上学期看了好久,2023蓝桥杯的那个炼铁一样的题型) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;const int T=101,M=1001;int cost[T],value[T],dp[…… 题解列表 2023年06月24日 1 点赞 0 评论 995 浏览 评分:4.0
求矩阵的两对角线上的元素之和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[10][10]; int N; int x,y; int sum =0; …… 题解列表 2023年07月06日 0 点赞 0 评论 475 浏览 评分:4.0
3150: 蓝桥杯2023年第十四届省赛真题-冶炼金属 摘要:解题思路:其实这是一道数学题,根据给出的样例进行计算,比如75 3 这组,所求V在V*3>=75并且V*4<75,分别向上取整和向下取整就能获得这组的最大最小,一共n组,在这n组中向上取整的取最大值,…… 题解列表 2023年08月17日 0 点赞 0 评论 892 浏览 评分:4.0
[编程入门]超精简28行代码解决(容易理解) 摘要:解题思路:使用结构指针存放信息注意事项:参考代码:struct stu { char xh[10]; char xm[10]; int xf[3]; }; char …… 题解列表 2023年08月19日 0 点赞 0 评论 576 浏览 评分:4.0
邮票问题,C语言解决 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int m=4,n=3; int ans,sum=0; for(int i=1;i<=m+n;i++){//总共…… 题解列表 2023年09月06日 0 点赞 0 评论 747 浏览 评分:4.0
灌水=======标题太短了 啊啊啊啊啊啊啊 摘要:```cpp #include using namespace std; int main() { int n; int sum; while((scanf("%d",&n)) !…… 题解列表 2023年09月24日 0 点赞 0 评论 761 浏览 评分:4.0
不吉利日期(相对经典的问题) 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Main { public static void main(String[…… 题解列表 2023年11月03日 0 点赞 0 评论 590 浏览 评分:4.0
解 1981: 输出M到N的数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b,d; cin>>a>>b; if(a>=b)…… 题解列表 2023年11月06日 0 点赞 0 评论 570 浏览 评分:4.0
字符串的修改(不使用strlen,用指针试试) 摘要:参考代码: ```c #include int main() { char a[201]; char b[201]; scanf("%s%s",a,b); char *p=a,…… 题解列表 2023年11月16日 0 点赞 0 评论 619 浏览 评分:4.0