A+B for Input-Output Practice (II) (C++代码) 摘要:#include<iostream> using namespace std; int main() { int a,b,n; cin>>n; for(int i=…… 题解列表 2018年09月28日 0 点赞 0 评论 887 浏览 评分:0.0
Tom数 (C语言代码)简洁的代码 15行 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char input[10]; while(scanf("%s"…… 题解列表 2018年09月28日 1 点赞 1 评论 508 浏览 评分:0.0
C二级辅导-分段函数 (C语言代码) 摘要:解题思路:注意事项:既然要输出小数,就设为浮点型吧,输入输出为%lf,参考代码:#include<stdio.h>int main(){ double a,y,x; scanf("%lf",…… 题解列表 2018年09月28日 4 点赞 1 评论 581 浏览 评分:0.0
蓝桥杯算法提高VIP-高精度乘法 (C++代码) 摘要:解题思路:个人笔记: 这种方法比较慢,,,只用来做个人笔记->手动算乘法,每个都乘一遍,长度有可能很长,所以数组定义了很大很大。关键在于c[i+j]=c[i+j]+a[j]*b[i];注意…… 题解列表 2018年09月28日 1 点赞 0 评论 1665 浏览 评分:0.0
蓝桥杯基础练习VIP-高精度加法 (C++代码) 摘要:解题思路: 个人笔记:a、b 两个字符串数组保存整数,c、e 两个整型数组保存每一位数字,d 数组用来交换, y数组用来计算。。。注意事项:参考代码:#include<iostream> …… 题解列表 2018年09月28日 0 点赞 0 评论 1087 浏览 评分:0.0
统计字符数 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> int main() { int n; int i,j,arr[26]…… 题解列表 2018年09月29日 1 点赞 0 评论 1099 浏览 评分:0.0
C语言训练-亲密数 (C语言代码)函数块调用 摘要:解题思路: 把求因子和的功能做成一个块,在需要时调用,思路就简化了。注意事项: 当然了,你也可以只写一行printf,输出给出的样例,这样也能通过。█ ▁ █参考代码:#include<stdio…… 题解列表 2018年09月29日 3 点赞 0 评论 2005 浏览 评分:0.0
C语言训练-列出最简真分数序列* (C语言代码) 摘要:解题思路: 分子不能被2或5整除,就可以了啦。注意事项:参考代码:#include<stdio.h> int main(){ for(int i=1; i<40; i++){ …… 题解列表 2018年09月29日 1 点赞 0 评论 789 浏览 评分:0.0
C语言训练-大、小写问题 (C语言代码)调用函数块 摘要:解题思路: 主体是一个识别大写字母并将之转化为小写字母的函数。 “妈妈,函数真好用!”▔ ▼ ▔注意事项:参考代码:#include<stdio.h> #include…… 题解列表 2018年09月29日 1 点赞 0 评论 776 浏览 评分:0.0
比较简单的做法,可AC 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>int cmp(const void * a,const void *b){ return *…… 题解列表 2018年09月29日 0 点赞 0 评论 735 浏览 评分:0.0