题解列表
[编程入门]结构体之时间设计-题解(c语言代码)附解 思路简单
摘要:#include<stdio.h>
struct days{//定义结构体
int year;
int month;
int day;
}p1;
int main(){
sca……
表达式括号匹配(stack),来看看吧,不用栈写法
摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h"
using namespace std;
// 定义一个字符串变量ch,用于存储输入的字符串
string ch;
……
A+B for Input-Output Practice (V)
摘要: #include
using namespace std;
int main()
{
int i=0,j=0;
int N,n;……
字符串形式求解阶乘和数-C(一点小见解......)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int fact(int num);int main(){ int num=0,j=0,sum……
: [编程入门]自由下落的距离计算
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i; float m,sum; scanf("%f%d",&m,&n); s……
编写题解 1471: 蓝桥杯基础练习VIP-矩形面积交
摘要:****不调用函数:
#include
#define min(x,y) ((x)(y)?(x):(y))
int main()
{
double……
区间dp+前缀和 #1898: 蓝桥杯算法提高VIP-合并石子(C++)
摘要:n堆石子,挑选任意一端区间 [L,R]
我们用F[L,R]表示从L到R合并为一堆所需要的**最小代价**
枚举一个切分点,把区间分割为[L,K] - [K+1,R],
那么问题就转为……
入门题,但是要注意看题目
摘要:# 注意审题!注意审题!注意审题!
#include
int main(){
long long num; //数字过大,用lld
scanf("……