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 评论 796 浏览 评分:0.0
蓝桥杯2013年第四届真题-核桃的数量 (C++代码) 摘要:解题思路:求3个数的最小公倍数注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b,c,i; cin>>a…… 题解列表 2019年01月25日 0 点赞 0 评论 800 浏览 评分:0.0
蓝桥杯算法训练VIP-暗恋 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int r,c; cin>>r>>c; string s[r]; in…… 题解列表 2019年01月25日 0 点赞 0 评论 737 浏览 评分:0.0
优质题解 蓝桥杯算法训练VIP-黑白无常 (C++代码) 摘要:解题思路:(1) 首先判断是否可能所有人都是黑纸条。在这种情况下不可能出现x!=0&&y!=n-1 (2) 其次,所有白纸条的人说的话应该都是相同的,因为他们说的都是真…… 题解列表 2019年01月25日 0 点赞 0 评论 1356 浏览 评分:8.7
C语言程序设计教程(第三版)课后习题5.7 (C语言代码)不限制位数(为通俗易懂而生——飞扬) 摘要:解题思路: 看代码注意事项: 看代码参考代码:#include<stdio.h>#include <math.h>int main(){ int n, m, count = 0; scan…… 题解列表 2019年01月25日 0 点赞 0 评论 957 浏览 评分:0.0
字符串排序 (C++代码) 摘要:解题思路:题目要求是按字符串长度排序,所以定义一个结构体存放字符串的长度,然后调用STL的sort函数实现排序即可。注意要定义一个排序规则函数。注意输入字符串前面要先吧回车吸收掉。用getchar()…… 题解列表 2019年01月25日 0 点赞 0 评论 1338 浏览 评分:3.7
C语言程序设计教程(第三版)课后习题5.4 (C语言代码)挑战最简 摘要:解题思路:看代码注意事项:看代码参考代码:#include<stdio.h>int main(){ int a, b, c; scanf("%d%*c%d%*c%d", &a, &b, &…… 题解列表 2019年01月25日 0 点赞 1 评论 496 浏览 评分:0.0
你的开发任务 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> void isMGWordAndChuli(char chuli[],int i,char …… 题解列表 2019年01月25日 1 点赞 0 评论 894 浏览 评分:0.0
拆分位数 (C语言代码)拆分n位数 摘要:解题思路: 个位求余后再除以10,一直循环到n=0注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d", &n); …… 题解列表 2019年01月25日 0 点赞 0 评论 1416 浏览 评分:0.0
文科生的悲哀 (C语言代码)(用递归写的,超时了) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int count=0; int cishu=0; int n; int nextCourse(int course) {…… 题解列表 2019年01月25日 0 点赞 0 评论 1022 浏览 评分:9.9