蓝桥杯基础练习VIP-FJ的字符串(Java 递归思想) 摘要:题不难,很容易想到递归 ```java import java.util.Scanner; public class Main { //递归方法 public static…… 题解列表 2021年03月12日 0 点赞 0 评论 385 浏览 评分:9.9
C语言解法 三个数字的排序 摘要:解题思路:没有桥梁注意事项:别弄混大小参考代码:#include<stdio.h>int main(){ int a,b,c; int max=0,min=0,mid=0; scanf("%d%d%d…… 题解列表 2021年03月12日 0 点赞 0 评论 684 浏览 评分:9.9
1047: [编程入门]报数问题,计数取余,数组左移 摘要:解题思路: count计数报数,每次遇 3 数组左移覆盖原编号注意事项:int n,arr[n];没报错,被DEV-CPP坑惨参考代码:#include <stdio.h> #define LEN …… 题解列表 2021年03月12日 0 点赞 0 评论 426 浏览 评分:2.0
题解 1093: 字符逆序 摘要:参考代码:#include<stdio.h>#include<stdlib.h>int main(){ char str[101]; scanf("%[^\n]",&str); int l; …… 题解列表 2021年03月12日 0 点赞 0 评论 305 浏览 评分:0.0
1044: [编程入门]三个字符串的排序,中规中矩string.h 摘要:解题思路:strcmp判断,strcpy交换注意事项:排序核心不变,单纯换判断、交换语法参考代码:#include <stdio.h> #include <string.h> #define RO…… 题解列表 2021年03月12日 0 点赞 0 评论 390 浏览 评分:0.0
1009: [编程入门]数字的处理与判断。不用数组 摘要:解题思路:通过乘方再取余获得最高位和去掉最高位、动态控制位宽注意事项:逐位输出用count(位数)作为判断表达式,别用 i(当前值) 参考代码:#include <stdio.h> #include…… 题解列表 2021年03月12日 0 点赞 0 评论 299 浏览 评分:0.0
1023: [编程入门]选择排序 摘要:解题思路:注意事项:多次标注长度的我习惯用宏,方便修改参考代码:#include <stdio.h> #define LEN 10 int main(){ int arr[LEN]; fo…… 题解列表 2021年03月12日 0 点赞 0 评论 601 浏览 评分:0.0
1017: [编程入门]完数的判断 摘要:解题思路:嵌套循环逐个判断注意事项:重置sum、count!!!!!!参考代码:#include <stdio.h> int main() { //输入值、当前值、总和、下标计数器、公因数数组 …… 题解列表 2021年03月12日 0 点赞 0 评论 286 浏览 评分:0.0
编写题解 1083: Hello, world! 摘要:参考代码:#include<stdio.h>#include<stdlib.h>int main(){ int x; while(scanf("%d",&x)!=EOF) { prin…… 题解列表 2021年03月12日 0 点赞 0 评论 749 浏览 评分:0.0
示例能过莫名错误的来(c++) 摘要:解题思路:混沌思路,小白勿喷注意事项:1.数据大 用long long2.注意输入10 1 的情况 掉换i j3.i<j 时 调换后输出时也要先输出大的 即 10 1————10 1 204.最好在输…… 题解列表 2021年03月11日 0 点赞 2 评论 1081 浏览 评分:9.9