定义三个函数对整数处理(指针做法) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define N 10void input(int* arr,int n); //输入函数,将十个数输入存…… 题解列表 2024年10月31日 0 点赞 0 评论 219 浏览 评分:9.9
个人认为较为简单的数字分离,仅供参考! 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void fen(int a){ int b,c,d,e; b=a/1000; //得到千位数 c=a/1…… 题解列表 2024年10月31日 2 点赞 0 评论 633 浏览 评分:9.9
不使用二维数组进行求解 摘要:解题思路:因为是矩形,所以只要得到长和宽的数据,就可以求得其内的面积,同时无需关注每一位数字在图形中的位置,只要得到在1 1 1 1 1 1 0 0 0 1 1 0 1 0 1 1 0 0 0 1 1…… 题解列表 2024年10月31日 0 点赞 0 评论 195 浏览 评分:0.0
与7无关的数 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <cmath>using namespace std;int main(){ int n; cin >…… 题解列表 2024年10月31日 0 点赞 0 评论 178 浏览 评分:7.3
2821: 开关灯 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main() { int n, m, i, j,t=0; int a[5001] …… 题解列表 2024年10月31日 0 点赞 0 评论 212 浏览 评分:0.0
1332: 津津的储蓄计划 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,sum=0,a[100],t,k,num; for(i=0;i<12;i++) {…… 题解列表 2024年10月31日 0 点赞 0 评论 204 浏览 评分:0.0
1635: 蓝桥杯算法训练VIP-整数平均值(简单解法) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int add(int n) //定义函数add{ int *p,a[100]={0},i,sum=0; //定义指针…… 题解列表 2024年10月31日 2 点赞 0 评论 688 浏览 评分:9.9
最易懂的代码 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int n,r;int arr[30];void func(int x,int st…… 题解列表 2024年10月31日 0 点赞 0 评论 376 浏览 评分:6.0
自定义函数之字符提取 摘要:解题思路:用s[ ]和t[ ]对比注意事项:s[ ]的大小参考代码:#include<stdio.h>int main(){ char s[100],t[6]="aeiou"; int i,c; fo…… 题解列表 2024年10月31日 0 点赞 0 评论 225 浏览 评分:9.9
杀到这九天十地无人敢称尊,直到身边再无一人能陪我征战,叶天帝不过如此 摘要:# 不用抽象标题没人看俺题解 此题模板题就不多说了 直接看看代码 ###### AC Code: ```cpp #include #include #include #includ…… 题解列表 2024年10月30日 1 点赞 1 评论 259 浏览 评分:10.0