题解 : DNA【Python】 摘要:解题思路:对于一个单位的dna串,我们可以先打印其a-1行,重复b-1次,然后打印最后一行:参考代码:def dna(a): # 先创建 (a-1)*a 的二维列表,元素都为 空格'…… 题解列表 2022年12月06日 0 点赞 0 评论 342 浏览 评分:9.9
1045: [编程入门]自定义函数之整数处理 摘要:```cpp #include using namespace std; int a[10],i,maxx=0,minn=10000,m,n; void scanf() { for(i=…… 题解列表 2022年12月06日 0 点赞 0 评论 307 浏览 评分:9.9
1046: [编程入门]自定义函数之数字后移 摘要:```cpp #include #define N 1005 int a[N]; int main() { int i,n,m; scanf("%d",&n); for(i=0;…… 题解列表 2022年12月06日 0 点赞 0 评论 235 浏览 评分:9.9
1031: [编程入门]自定义函数之字符串反转 摘要:```cpp #include int main() { char s[1000]; gets(s); int len=strlen(s); for(int i=len-1;i>…… 题解列表 2022年12月06日 0 点赞 0 评论 293 浏览 评分:9.9
1124: C语言训练-大、小写问题 摘要:```cpp #include int main() { char s[1000]; gets(s); int len1=strlen(s); for(int i=0;i='A'…… 题解列表 2022年12月06日 0 点赞 0 评论 333 浏览 评分:9.9
1196: 去掉空格 摘要:```cpp #include using namespace std; int main() { char s[1000]; while(gets(s)) {…… 题解列表 2022年12月06日 0 点赞 0 评论 271 浏览 评分:9.9
1042: [编程入门]电报加密 摘要:```cpp #include using namespace std; int main() { char s[1000]; int i; gets(s); …… 题解列表 2022年12月06日 0 点赞 0 评论 405 浏览 评分:9.9
1018: [编程入门]有规律的数列求和 (含注释) 摘要:解题思路: 1.找出规律:从第三项开始,分子为前一项分子和分母的和;分母等于前一项分子。注意事项: 计算下一项分子时,需要中间变量来保存该项分子值,以便赋值给下一项的分母。参…… 题解列表 2022年12月06日 0 点赞 0 评论 260 浏览 评分:9.9
题解: 蓝桥杯算法训练VIP-反置数【Python】 摘要:解题思路:转为字符串,逆序后再转为int参考代码:def func(num): num = [i for i in str(num)] return int(''.…… 题解列表 2022年12月06日 0 点赞 0 评论 193 浏览 评分:9.9