字符串移位包含问题(又是数组空间不够变答案错误,记得设100以上) 摘要:解题思路: 两个字符串s1,s2先判断谁的长,将长的字符串将自身复制两次,组成一个新的字符串,如果可以通过题目给的移位方式得到s1是s2的子串,或s2是s1的子串,则短的字符串必定为这个新的字符串的…… 题解列表 2023年10月27日 1 点赞 0 评论 352 浏览 评分:9.9
fgets出现50分的原因 摘要:注意事项:fgets遇到'\n'结束,并且要接收'\n'。也就是说字符串最后一位为'\n'。当有换行符时,就要选择结束流程,不然会在other处多加一,…… 题解列表 2023年10月26日 0 点赞 0 评论 258 浏览 评分: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 评论 262 浏览 评分:0.0
2226: 蓝桥杯算法训练-排序 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<bits/stdc++.h> using namespace std; int main() { …… 题解列表 2023年10月26日 0 点赞 0 评论 238 浏览 评分:0.0
2097: 单词得分---全转换为大写比较加分 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<bits/stdc++.h> using namespace std; int main() { …… 题解列表 2023年10月26日 0 点赞 0 评论 329 浏览 评分:0.0
2096: 打印平行四边形 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int n; cin>>n; …… 题解列表 2023年10月26日 0 点赞 0 评论 308 浏览 评分:0.0
2182: [编程入门]打印图案 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { cout<<" * "<<endl; …… 题解列表 2023年10月26日 0 点赞 0 评论 412 浏览 评分:0.0
2082: 蓝桥杯基础练习-十六进制转十进制 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { long long int num; …… 题解列表 2023年10月26日 0 点赞 0 评论 415 浏览 评分:0.0
2080: 蓝桥杯基础练习-十六进制转八进制 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int n; cin>>n; …… 题解列表 2023年10月26日 0 点赞 0 评论 275 浏览 评分:0.0
信息学奥赛一本通T1616-A的B次方(快速幂) 摘要:```python def f(Base,Index,Num): res=1 while Index!=0: if Index&1: …… 题解列表 2023年10月26日 0 点赞 0 评论 390 浏览 评分:9.9