糖果游戏(简单一般法) 摘要:解题思路:就是一个很简单的循环加上条件分支。注意事项:参考代码:#include<stdio.h>int main(){ int a[5]; int i=0; for(i=0;i<5…… 题解列表 2022年11月19日 0 点赞 6 评论 1083 浏览 评分:9.9
1013: [编程入门]Sn的公式求和(通过通项公式实现) 摘要:解题思路:这里是应用高中内容求出2 22 222 2222......的通项公式求解首先我们可以很容易知道在n =(1,2,3......)时10^n = 10,100,1000......而再减去1…… 题解列表 2022年11月19日 0 点赞 0 评论 324 浏览 评分:9.9
C语言 宏定义之找最大数& 摘要:解题思路:注意事项:此代码在蓝桥杯在线测试运行不起来,本人VS2019运行没问题,可能是float num[Long]的问题,如果改为int num[Long蓝桥杯就能运行了参考代码:#include…… 题解列表 2022年11月19日 0 点赞 0 评论 301 浏览 评分:0.0
c++字符串加密病历单 摘要:解题思路:注意事项:xyz的逆序输出参考代码:#include <bits/stdc++.h>using namespace std;int main (){ string tmp; char ans…… 题解列表 2022年11月19日 0 点赞 0 评论 914 浏览 评分:7.3
利用二维数组的思想,找出填充数据之间的规律 摘要:解题思路:注意事项:参考代码:n = int(input())n_list = [[0 for i in range(n)] for j in range(n)]n_list[0][0] = 1for…… 题解列表 2022年11月19日 0 点赞 0 评论 288 浏览 评分:0.0
c语言的一种思路 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<limits.h>#include<math.h>#include<stdlib.h>int main(){ i…… 题解列表 2022年11月19日 0 点赞 0 评论 308 浏览 评分:0.0
很简单· 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int i = 0 ,j=0; char arr [100]; gets(a…… 题解列表 2022年11月19日 0 点赞 0 评论 297 浏览 评分:0.0
C语言 实数的打印& 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ void out_real_num_format(double a); double a; s…… 题解列表 2022年11月19日 0 点赞 0 评论 254 浏览 评分:0.0
C语言 宏定义之闰年判断& 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>#define LEAP_YEAR(y) if(((y%4==0)&&(y%100!=0))||(y%4…… 题解列表 2022年11月19日 0 点赞 0 评论 260 浏览 评分:0.0
C语言 宏定义练习之三角形面积& 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>#define S_(x,y,z) (x+y+z)/2#define area(S,a,b,c) sqr…… 题解列表 2022年11月19日 0 点赞 0 评论 368 浏览 评分:0.0