蓝桥杯历届试题-回文数字 python 摘要:解题思路:遍历,数字->字符串->列表,再与反转后判断注意事项:要注意不能直接用=,会修改原始列表数据!参考代码:num = int(input()) cnt = 0 for i in range…… 题解列表 2021年04月24日 0 点赞 0 评论 192 浏览 评分:0.0
编写题解 2002: 计算数字个数 python 摘要:解题思路:无注意事项:使用了try参考代码:s = input() flag = 0 for i in range(len(s)): try: if int(s[i])…… 题解列表 2021年04月24日 0 点赞 0 评论 222 浏览 评分:0.0
1044: [编程入门]三个字符串的排序c语言 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){ char c[100],d[100],e[100]; char …… 题解列表 2021年04月24日 0 点赞 0 评论 311 浏览 评分:0.0
编写题解 1544: 蓝桥杯算法提高VIP-特殊的质数肋骨 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; //判断素数这里需要检查的范围为,2~sqrt(n) bool ju…… 题解列表 2021年04月24日 0 点赞 1 评论 309 浏览 评分:9.9
1043: [编程入门]三个数字的排序(冒泡排序法) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[3]={0};//对数组进行清空 int i,j; int t; scanf…… 题解列表 2021年04月24日 0 点赞 0 评论 292 浏览 评分:0.0
1042: [编程入门]电报加密 c语言 摘要:解题思路:注意事项:分开写出z的情况参考代码:#include<stdio.h>#include<string.h>int main(){ char str[100]={0}; int i…… 题解列表 2021年04月24日 0 点赞 0 评论 325 浏览 评分:0.0
求长方形面积(C语言题解) 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main() { int A,B; scanf("%d %d",&A,&B); printf…… 题解列表 2021年04月24日 0 点赞 0 评论 1313 浏览 评分:7.7
编写题解 1040: [编程入门]实数的打印 摘要:解题思路:注意事项:换行的操作不可忘参考代码:#include<stdio.h>int main(){ float n; int i,j; scanf("%f",&n); for(i=1;i<=3;i…… 题解列表 2021年04月24日 0 点赞 0 评论 308 浏览 评分:0.0
水仙花数判断 摘要:解题思路:对三位数的取整及取余即可。注意事项:其中十位数要先取整再取余。参考代码:#include<stdio.h>#include<math.h>int main(){ int n,s; for(n…… 题解列表 2021年04月24日 0 点赞 1 评论 263 浏览 评分:7.3
使用动态分配来解决问题 摘要:解题思路:注意事项:申请后释放参考代码:#include <stdio.h>#include<malloc.h>int main(){ int n,i,sum=0; int *p; …… 题解列表 2021年04月24日 0 点赞 0 评论 398 浏览 评分:8.7