[编程入门]自定义函数之字符串反转-题解(C语言代码) 摘要:解题思路:用另外一个数组保存从尾至头的数据,判断当前元素不是空格则存储注意事项:用来存储的数组不能跟源数组的下标同时++参考代码:#include "stdio.h"#include "string.…… 题解列表 2020年12月14日 0 点赞 0 评论 743 浏览 评分:0.0
[编程入门]矩阵对角线求和-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:# include<stdio.h>int main(void){ int a[3][3]; int i, j; int sum1=0, sum2=0;…… 题解列表 2020年12月14日 0 点赞 0 评论 488 浏览 评分:0.0
[编程入门]正儿八经的C语言代码,简单易懂。 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct student { char id[20]; char name[30]; int a[3];};int i, n;str…… 题解列表 2020年12月14日 0 点赞 3 评论 562 浏览 评分:9.9
蓝桥杯算法训练-大小写转换-题解(C++代码) 摘要:解题思路:注意事项:参考代码:#include using namespace std; int main() { char a[21]; cin>>a; int …… 题解列表 2020年12月14日 0 点赞 0 评论 894 浏览 评分:9.9
[编程入门]阶乘求和-题解(C语言代码) 摘要:解题思路:简单清晰的思路!!注意事项:参考代码:#include<stdio.h>int main(){ int n,i; long long a=1,Sn=0; scanf("%d",…… 题解列表 2020年12月14日 0 点赞 0 评论 528 浏览 评分:9.9
蓝桥杯算法提高VIP-前10名-题解(C语言代码)冒泡加调用 摘要:解题思路:注意事项:参考代码: #include <stdio.h> int s(int a[],int n) { int i,j,t; for(i=0;i<n;i++)…… 题解列表 2020年12月14日 1 点赞 0 评论 395 浏览 评分:0.0
C语言训练-自守数问题-题解(C语言代码)简洁代码! 摘要:解题思路:输出空两个空格注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ long long int i,y; for(i=0;…… 题解列表 2020年12月14日 0 点赞 2 评论 1065 浏览 评分:9.9
[编程入门]水仙花数判断-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int num,a,b,c; for(num=100;num<1000;num++) { …… 题解列表 2020年12月14日 0 点赞 0 评论 813 浏览 评分:9.9
数字整除-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ char num[1001]; do { gets(num); if (num[0] == '0&…… 题解列表 2020年12月14日 0 点赞 0 评论 468 浏览 评分:0.0
核电站问题-题解(Java代码)直接用公式 摘要:解题思路:假设方案数是f(n),第一个位置有两种状态,有或者无。1.无 那么剩下n-1个位置随便放,即为f(n-1);2.有 此时分两种情况,即第二个位置无炸弹,方案数为f(n-2);第二个位置有炸弹…… 题解列表 2020年12月14日 0 点赞 0 评论 1407 浏览 评分:0.0