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