个人认为较为简单的数字分离,仅供参考! 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void fen(int a){ int b,c,d,e; b=a/1000; //得到千位数 c=a/1…… 题解列表 2024年10月31日 2 点赞 0 评论 668 浏览 评分: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 评论 214 浏览 评分:0.0
与7无关的数 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <cmath>using namespace std;int main(){ int n; cin >…… 题解列表 2024年10月31日 0 点赞 0 评论 193 浏览 评分:7.3
2821: 开关灯 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main() { int n, m, i, j,t=0; int a[5001] …… 题解列表 2024年10月31日 0 点赞 0 评论 234 浏览 评分: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 评论 231 浏览 评分: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 评论 723 浏览 评分: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 评论 385 浏览 评分: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 评论 238 浏览 评分:9.9
杀到这九天十地无人敢称尊,直到身边再无一人能陪我征战,叶天帝不过如此 摘要:# 不用抽象标题没人看俺题解 此题模板题就不多说了 直接看看代码 ###### AC Code: ```cpp #include #include #include #includ…… 题解列表 2024年10月30日 1 点赞 1 评论 268 浏览 评分:10.0
数字的顺序,逆序输出 摘要:解题思路:使用strlen()函数,循环注意事项:使用该函数包含string.h的头文件参考代码:#include<stdio.h>#include<string.h> //注意使用该头文件int m…… 题解列表 2024年10月30日 1 点赞 0 评论 327 浏览 评分:9.9