自定义函数之数字后移,新手易懂 摘要:解题思路:用两个数组,数组a来存放输入的数据,数组b来存放后移后的数据。在代码中i+m>=n是用来判断a数组末尾几个数据后移后是否会超出a中所输入数据的长度,超出部分数据依次从b[0]向后存放注意事项…… 题解列表 2023年02月09日 1 点赞 0 评论 486 浏览 评分:10.0
编写题解 2858: 整理药名 摘要:参考代码:#include<bits/stdc++.h>using namespace std;char s[1001];int main(){ int l,n; cin>>n; f…… 题解列表 2023年02月09日 0 点赞 6 评论 310 浏览 评分:6.0
1000: [竞赛入门]简单的a+b 摘要:参考代码:#include<iostream>using namespace std;int main(){ int a,b; while(cin>>a>>b)cout<<(a+b)<<e…… 题解列表 2023年02月09日 0 点赞 0 评论 373 浏览 评分:9.9
数字三角形模型 摘要:## 数字三角形模型 ### 注意事项 1.注意边界问题,第一行和第一列只有一个方向能过来。 2.题目中说的(2N - 1)其实是限制了走的方向。 #### 代码 ``` #i…… 题解列表 2023年02月08日 0 点赞 0 评论 430 浏览 评分:0.0
c++兰顿蚂蚁简单思路 摘要:```cpp #include #include using namespace std; const int N = 105; int g[N][N]; int n,m,x,y,k…… 题解列表 2023年02月08日 0 点赞 0 评论 332 浏览 评分:0.0
2068: [STL训练]Ignatius and the Princess IV (C++) 摘要:解题思路: 读入,排序,最中间的数即为所求注意事项: 无参考代码:#include <iostream> // #include <sstream> // #include <cstdio> #…… 题解列表 2023年02月07日 0 点赞 0 评论 245 浏览 评分:0.0
3060: 合并石子 摘要:## # 合并石子 #### ### 区间dp ------------ ##### 解题思路: ------------ f(i,j)表示将从第i堆石子到第j堆石子…… 题解列表 2023年02月07日 0 点赞 0 评论 463 浏览 评分:9.9
1000: [竞赛入门]简单的a+b 标题 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; while(cin>>a>>b)cout…… 题解列表 2023年02月07日 0 点赞 0 评论 298 浏览 评分:9.9
2749: Hello, World!(C++代码) 摘要:解题思路:直接输出即可注意事项:1.用英语符号 2.逗号后面有一个空格 3.注意大小写参考代码:#include<iostream>using na…… 题解列表 2023年02月07日 0 点赞 0 评论 660 浏览 评分:9.9
1875: 蓝桥杯2017年第八届真题-小数第n位(c++)10ms 摘要:解题思路:因为相除时每一次的余数要小于除数,即余数的个数是有限的.两个整数相除,商要么是整数,要么有限小数,要么是无限(循环)小数.注意事项:找出循环部分参考代码:#include<iostream>…… 题解列表 2023年02月06日 0 点赞 0 评论 331 浏览 评分:9.9