1099 数组实现 c++ 摘要:解题思路: 用数组模拟数轴 可以将一开始的初值全部设置为零 将要修路的路段用for循环将1填到要修的路段上 &nbs 题解列表 2022年02月12日 0 点赞 0 评论 317 浏览 评分:0.0
[Sapphire]1047:报数问题(类约瑟夫环)思路简单:数组法!!!(C语言代码) 摘要:数组法解决约瑟夫环问题Sapphire2022/2/12解题思路:在输入人数n后,我们设置一个数组arr[n]并把其中每个元素设值为1,定义count=0(用来记人数),counter=0(用来记报数…… 题解列表 2022年02月12日 0 点赞 0 评论 446 浏览 评分:9.9
1481: 蓝桥杯算法提高VIP-剪刀石头布(简单写法C语言) 摘要:```c #include void main() { enum play {stone,cloth,scissors}; int a, b; scanf("%d …… 题解列表 2022年02月12日 0 点赞 0 评论 261 浏览 评分:0.0
Hifipsysta-1206-字符串问题(C++代码) 摘要:```cpp #include #include #include using namespace std; int main() { string mystr; …… 题解列表 2022年02月12日 0 点赞 0 评论 280 浏览 评分:0.0
Hifipsysta-1189-内码对称(C++代码) 摘要:```cpp #include #include #include #include using namespace std; vector Ten2N(long long numbe…… 题解列表 2022年02月12日 0 点赞 0 评论 330 浏览 评分:0.0
蓝桥杯算法训练-递归求二项式系数值 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <iostream>using namespace std;int digui(int k,int n){ i…… 题解列表 2022年02月12日 0 点赞 0 评论 678 浏览 评分:9.9
简明易懂的题解,结构体之成绩记录 摘要:解题思路:注意事项:参考代码:#include#includetypedef struct{ char num[100]; char name[100]; int sub1; int sub2; in…… 题解列表 2022年02月12日 0 点赞 0 评论 328 浏览 评分:0.0
复数的计算 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <iostream>#include <string.h>#include <math.h>#include <io…… 题解列表 2022年02月12日 0 点赞 0 评论 325 浏览 评分:9.9
Hifipsysta- 1181-不容易系列2(C++代码) 摘要:```cpp #include using namespace std; long long fact(long long n){ long long sum=1; fo…… 题解列表 2022年02月12日 0 点赞 0 评论 385 浏览 评分:0.0
Hifipsysta- 1162-密码(C++代码) 摘要:```cpp #include #include #include #include using namespace std; int main(){ int N; …… 题解列表 2022年02月12日 0 点赞 0 评论 363 浏览 评分:0.0