玉龙学长买雪糕 摘要:参考代码: ```c #include int main() { int n; scanf("%d",&n); int sum=1; int a=1; while(n>1)…… 题解列表 2023年10月27日 0 点赞 0 评论 655 浏览 评分:0.0
字符串移位包含问题(又是数组空间不够变答案错误,记得设100以上) 解题思路:两个字符串s1,s2先判断谁的长,将长的字符串将自身复制两次,组成一个新的字符串,如果可以通过题目给的移位方式得到s1是s2的子串,或s2是s1的子串,则短的字符串必定为这个新的字符串的子串,举个例子:AABCDAABCDCDAA参考代码:```c#include#includeintsub 题解列表 2023年10月27日 1 点赞 0 评论 523 浏览 评分:9.9
fgets出现50分的原因 摘要:注意事项:fgets遇到'\n'结束,并且要接收'\n'。也就是说字符串最后一位为'\n'。当有换行符时,就要选择结束流程,不然会在other处多加一,…… 题解列表 2023年10月26日 0 点赞 0 评论 489 浏览 评分:0.0
Sn的公式求和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,sn=0; int t = 0; scanf("%d", &n); for (int i = 1;…… 题解列表 2023年10月26日 0 点赞 0 评论 510 浏览 评分:0.0
2226: 蓝桥杯算法训练-排序 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<bits/stdc++.h> using namespace std; int main() { …… 题解列表 2023年10月26日 0 点赞 0 评论 467 浏览 评分:0.0
2097: 单词得分---全转换为大写比较加分 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<bits/stdc++.h> using namespace std; int main() { …… 题解列表 2023年10月26日 0 点赞 0 评论 578 浏览 评分:0.0
2096: 打印平行四边形 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int n; cin>>n; …… 题解列表 2023年10月26日 0 点赞 0 评论 530 浏览 评分:0.0
2182: [编程入门]打印图案 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { cout<<" * "<<endl; …… 题解列表 2023年10月26日 0 点赞 0 评论 634 浏览 评分:0.0
2082: 蓝桥杯基础练习-十六进制转十进制 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { long long int num; …… 题解列表 2023年10月26日 0 点赞 0 评论 653 浏览 评分:0.0
2080: 蓝桥杯基础练习-十六进制转八进制 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int n; cin>>n; …… 题解列表 2023年10月26日 0 点赞 0 评论 477 浏览 评分:0.0