蓝桥杯算法训练VIP-整数平均值(指针) 摘要:解题思路:注意事项:参考代码:// 包含标准输入输出库 #include <stdio.h> // 定义一个函数myave,用于计算整数数组a的平均值 // 参数a是整数数组的首地址,sz是…… 题解列表 2023年11月23日 0 点赞 0 评论 496 浏览 评分:6.0
1762: printf基础练习 摘要:注意事项:带前缀要加#参考代码:#include<iostream> using namespace std; int main() { int t=123456789; …… 题解列表 2023年11月24日 0 点赞 0 评论 587 浏览 评分:6.0
输出第二个数字 哈哈哈哈简直不要太基础 摘要:参考代码:#include<stdio.h> int main() { int a,b,c; scanf("%d %d %d",&a,&b,&c); printf("…… 题解列表 2023年11月29日 4 点赞 0 评论 497 浏览 评分:6.0
奇偶ASCII值判断 摘要:参考代码:#include<stdio.h> int main() { char a; scanf("%c",&a); if(a%2==0){ pr…… 题解列表 2023年11月29日 0 点赞 0 评论 558 浏览 评分:6.0
自定义函数处理素数——C语言;调用函数;易懂; 摘要:解题思路: 素数是除1和它本身之外没有它能除尽的数,所以使用循环与选择结构解题;注意事项: 一定注意不能在循环中使用if判断素数,否则会出现一串字母;所以定义一个新变量作为记录是否有数能被你…… 题解列表 2023年11月30日 0 点赞 0 评论 236 浏览 评分:6.0
c++ 边乘边加 摘要:#include<iostream> using namespace std; int a[1000],b[1000]; void cheng(int a[],int c) { int j…… 题解列表 2023年11月30日 0 点赞 0 评论 357 浏览 评分:6.0
2846: 统计数字字符个数 摘要:解题思路:这道题涉及了字符串,我们就需要头文件<string.h>,按照题目要求,输入字符会包含空格,所以我们输入不再使用scanf,而是使用gets()。注意事项:在遍历数组中的字符串是,我们要明白…… 题解列表 2023年11月30日 0 点赞 0 评论 576 浏览 评分:6.0
Yu:1022筛选N以内的素数 摘要:**解题思路:** 用a作标记,遍历2~n这些数。a = 1表示i为素数,a = 0表示非素数。 默认a = 1,如果发现可以被某个数整除,则可判断为非素数。标记a = 0,并退出循环。…… 题解列表 2023年12月01日 1 点赞 0 评论 198 浏览 评分:6.0
答案之中的答案 摘要:解题思路:wu注意事项:wu参考代码:#include<iostream>using namespace std;int main(){ int a,b,c; cin>>a>>b>>c; …… 题解列表 2023年12月02日 0 点赞 0 评论 300 浏览 评分:6.0