题解列表

筛选

题解 2791: 计算邮资

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int a;    char b;    scanf("%d  %c", &a, &b);    if (……

题解 2792: 三角形判断

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int a, b, c;    scanf("%d %d %d", &a, &b, &c);    if ……

题解 2794: 求平均年龄

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define N 100int main(){    int n, age[N];    int i, sum=0;    float……

3150: 蓝桥杯2023年第十四届省赛真题-冶炼金属

摘要:解题思路:其实这是一道数学题,根据给出的样例进行计算,比如75 3 这组,所求V在V*3>=75并且V*4<75,分别向上取整和向下取整就能获得这组的最大最小,一共n组,在这n组中向上取整的取最大值,……

题解 2807 YHLX

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include <math.h>int main(){    int R, Y;    long int M;    scanf("%……

被3整除的子序列(动态规划)

摘要:解题思路:建立dp[i][j],代表以i结尾,余数是j的所有子序列, 转移方程:dp[i][k]=∑dp[j][w];(if(w+s[i])%3==k)              dp[i][k]……

又是一个动态规划的题

摘要:#include<iostream> using namespace std; int main() {     string s;     while(getline(cin,s))  ……

1303: 统计数字(C++ STL)

摘要:# STL map ```c++ #include #include #include #include #include using namespace std; mapnums; ……