题解列表

筛选

题解1808:精度控制1

摘要:解题思路:可以采用setprecision()来设置输出浮点数的小数点位数注意事项:头文件#include<iomanip>参考代码:#include<iostream>#include<iomani……

3142: 蓝桥杯2023年第十四届省赛真题-平方差

摘要:解题思路:此题可以用三个for循环直接求解(即蛮力法),但是求出来之后会显示时间超时,看了一下别人的方法,可以直接用公式求解,即:F(x)=x/4 + (x+1)/2此公式求出来是小于x的满足条件的数……

纯新手-C语言

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>#include <math.h>int main(){    int n,s[100],i,k……

1290: 奶牛的锻炼

摘要:参考代码:#include<bits/stdc++.h> using namespace std; int dp[10005][1000]; int a[10005]; int n,m; i……