1013: [编程入门]Sn的公式求和(通过通项公式实现) 解题思路:这里是应用高中内容求出2222222222......的通项公式求解首先我们可以很容易知道在n=(1,2,3......)时10^n=10,100,1000......而再减去1可得10^n-1=9,99,999......这时乘以2/9就可以的到2, 题解列表 2022年11月19日 0 点赞 0 评论 504 浏览 评分:9.9
C语言 宏定义之找最大数& 解题思路:注意事项:此代码在蓝桥杯在线测试运行不起来,本人VS2019运行没问题,可能是floatnum[Long]的问题,如果改为intnum[Long蓝桥杯就能运行了参考代码:#include#defineLong3//改一下Long的大小可以从更多数中判断最大数#definej 题解列表 2022年11月19日 0 点赞 0 评论 485 浏览 评分:0.0
c语言的一种思路 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<limits.h>#include<math.h>#include<stdlib.h>int main(){ i…… 题解列表 2022年11月19日 0 点赞 0 评论 467 浏览 评分: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 评论 466 浏览 评分:0.0
C语言 实数的打印& 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ void out_real_num_format(double a); double a; s…… 题解列表 2022年11月19日 0 点赞 0 评论 445 浏览 评分: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 评论 440 浏览 评分: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 评论 536 浏览 评分:0.0
1152题解c语言 摘要:解题思路:注意事项:参考代码:方法一#include <stdio.h>#include <math.h>int main(){ int m,i; double t=1; scanf("%d",&m)…… 题解列表 2022年11月19日 0 点赞 0 评论 516 浏览 评分:0.0
C语言 宏定义的练习& 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define remainder(a,b) printf("%d",a%b) int main(){ int a…… 题解列表 2022年11月19日 0 点赞 0 评论 491 浏览 评分:0.0
1022: [编程入门]筛选N以内的素数 摘要:解题思路:注意事项:参考代码: int a=1; int n; int t=0; scanf("%d", &n); for (int i = 1; i <= n; i++) { t = 0;//防止…… 题解列表 2022年11月19日 0 点赞 0 评论 463 浏览 评分:0.0