1298: 德克萨斯长角牛 摘要:```cpp #include using namespace std; const int MAXN=6205,INF=2e9; int u[MAXN],w[MAXN],v[MAXN],d…… 题解列表 2023年03月17日 0 点赞 0 评论 285 浏览 评分:9.9
1274: 排座椅[NOIP2008 年普及组] 摘要:```cpp #include #include using namespace std; struct ff { int x,y,p,q; }a[2001]; struct …… 题解列表 2023年03月17日 0 点赞 0 评论 334 浏览 评分:6.0
1273: ISBN码(c++代码) 摘要:```cpp #include using namespace std; int main() { string s; while(cin>>s) { …… 题解列表 2023年03月17日 0 点赞 0 评论 271 浏览 评分:9.9
1272: 采药[NOIP2005复赛普及组] 摘要:```cpp #include using namespace std; int a[1001]; int main() { int t,m,i,j,k,l,sj[101],jz[…… 题解列表 2023年03月17日 2 点赞 0 评论 325 浏览 评分:9.9
1271: 矩形滑雪场 摘要:```cpp #include using namespace std; int n,m,a[1001][1001],b[1001][1001],u[4]={0,0,-1,1},v[4]={-…… 题解列表 2023年03月17日 0 点赞 0 评论 477 浏览 评分:9.9
1270: 贝茜的训练 摘要:```cpp #include using namespace std; const int N=1e5+1; char a[N]; int main() { int time…… 题解列表 2023年03月17日 0 点赞 0 评论 291 浏览 评分:9.9
利用c++结构体重构小于计算来使用sort排序 摘要:解题思路:创建结构体用number存储数值,len存储各各数位相加的结果。根据题意定义小于运算,然后可以直接使用c++内置的sort函数进行排序。注意事项:参考代码:#include<bits/std…… 题解列表 2023年03月17日 0 点赞 0 评论 495 浏览 评分:9.9
#C++2680——蓝桥杯2022年第十三届省赛真题-纸张尺寸 摘要:解题思路:由题意可得出:从A1开始,满足规律:length[i]=wide[i-1]wide[i]=length[i-1]/2;按照规律构造答案即可;******按规律办事******参考代码:#in…… 题解列表 2023年03月17日 1 点赞 0 评论 476 浏览 评分:9.5
[编程入门]宏定义之找最大数 摘要:首先理解题目表达的含义题目描述:分别用函数和带参的宏,从三个数中找出最大的数。输入格式:3个实数输出格式:最大的数,输出两遍,先用函数,再用宏。 保留3位小数。解题思路: 1.要求输入实数,并保留…… 题解列表 2023年03月17日 0 点赞 0 评论 256 浏览 评分:9.9
#C++1883——蓝桥杯2017年第八届真题-日期问题 摘要:解题思路:1.简单穷举所有情况2.用DFS函数按要求格式输出(徒有其名,简单的show功能啦)[19/20]aa-bb-cc ———(注意标准输出要补零,eg: 2002-02-02)3.处…… 题解列表 2023年03月17日 0 点赞 0 评论 266 浏览 评分:0.0