题解列表
蓝桥杯算法训练VIP-整数平均值-题解(C语言代码)在VS验证过
摘要:解题思路:用常规for使得一组数输入在一行内注意事项:参考代码:#define _CRT_SECURE_NO_WARNINGS#include<stdio.h>void qiuhe(int* p, ……
蓝桥杯算法训练VIP-数的统计 C++ map
#map有序容器```c++#include#include#include#includeusingnamespacestd;constintN=1e5+10;intmain(){intn;vectornums;mapmp;cin>>n;nums.resize(n);for(inti=0;i>num
1113: C语言考试练习题_保留字母
##题目1113:C语言考试练习题_保留字母**解题思路:输入一个字符串,一个个判断是否为字母,如果符合条件就输出**```cpp#includeusingnamespacestd;intmain(){chara[1000];cin>>a;intn=strlen(a);for(inti=0;i='a'
多组输入的循环方式解决
摘要:解题思路:注意事项:参考代码:#define _CRT_SECURE_NO_WARNINGS#include<stdio.h>int main() { int n; scanf("%d", &n);……
1005:[编程入门]温度转换
摘要:解题思路:输入华氏温度,输出摄氏温度。注意事项:1,取两位小数的写法。2,原公式乘号省略。3,注意题目中要求的输出形式。参考代码:#include<stdio.h>int main(){ flo……
简单调用函数解决问题
摘要:参考代码:# include <stdio.h># include <string.h> //使用strlen()计算数组长度需添加此头文件void abc(char str[])……