C语言训练-求s=a+aa+aaa+aaaa+aa...a的值 (C语言代码) 摘要:解题思路: 注意事项:输入整数及其个数的范围条件参考代码:#include <stdio.h>#include <math.h>int main(int argc, char *argv[]) { i…… 题解列表 2019年01月25日 0 点赞 0 评论 911 浏览 评分:0.0
蓝桥杯2013年第四届真题-核桃的数量 (C语言代码) 摘要:解题思路: 找到一个值是3的倍数且同余,那么该值就是结果QWQ注意事项: 参考代码:#include <stdio.h> int main(){ int i = 3; int a,b,c; …… 题解列表 2019年01月25日 0 点赞 0 评论 719 浏览 评分:0.0
【出圈】 (C语言代码)C语言函数模块化 摘要:解题思路:参考代码:#include<stdio.h> #include<stdlib.h> int n,m; int *a; void init(); void count_off…… 题解列表 2019年01月25日 1 点赞 0 评论 1237 浏览 评分:0.0
【回文数(二)】 (C语言函数模块化) 摘要:解题思路:参考代码:#include <stdio.h> #include <string.h> int ishw(char *m) { int len=strlen(m); …… 题解列表 2019年01月25日 0 点赞 0 评论 1264 浏览 评分:0.0
蓝桥杯算法提高VIP-棋盘多项式 (C++代码)dfs 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>#include<string.h>using namespace std;int n,map[…… 题解列表 2019年01月25日 1 点赞 0 评论 1091 浏览 评分:0.0
字符串的输入输出处理 (Java代码) 摘要:解题思路:注意事项:参考代码: Scanner sc = new Scanner(System.in); String a = sc.nextLine(); String[] s = new S…… 题解列表 2019年01月26日 0 点赞 1 评论 431 浏览 评分:0.0
蛇行矩阵 (Java代码) 摘要:解题思路:注意事项:参考代码:public static int f(int m) { if(m==0) return 1; return f(m-1)+m; } public …… 题解列表 2019年01月26日 0 点赞 0 评论 518 浏览 评分:0.0
蛇行矩阵 (C++代码) 摘要:解题思路:找规律文通,可以有多种思路。我的是考虑按照数字的增长来的,1的下标为(0,0),总和为0。2 3 的下标为(1,0)和(0,1),总和是1。同理接下来的数字。找到下标的规律之后就可以利用规律…… 题解列表 2019年01月26日 0 点赞 0 评论 738 浏览 评分:0.0
求阶梯水费 (C语言代码) 摘要:解题思路:看代码就完事了注意事项:参考代码:#include<stdio.h>int main(){ int x,y; scanf("%d",&x); if(x<15) …… 题解列表 2019年01月26日 6 点赞 0 评论 1513 浏览 评分:0.0
蓝桥杯历届试题-蚂蚁感冒 (C语言代码) 摘要:解题思路: 借鉴了大佬们的思路QWQ注意事项:参考代码:#include <stdio.h> #include <stdlib.h> int main(){ int my[50] = {0};…… 题解列表 2019年01月26日 0 点赞 0 评论 929 浏览 评分:0.0