1038: [编程入门]宏定义练习之三角形面积 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #define swap(a,b,c) s=(a+b+c)/2; #define get(a,b,c,s) area=pow((s…… 题解列表 2022年06月13日 0 点赞 0 评论 273 浏览 评分:0.0
1039: [编程入门]宏定义之闰年判断 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #define LEAP_YEAR(y) ((y%4==0&&y%100!=0)||(y%400==0))?putchar('…… 题解列表 2022年06月13日 0 点赞 0 评论 346 浏览 评分:0.0
1040: [编程入门]实数的打印 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { float d; scanf("%f",&d); for(int i=1;i<4;i++){ …… 题解列表 2022年06月13日 0 点赞 0 评论 216 浏览 评分:0.0
1041: [编程入门]宏定义之找最大数 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #define max(a,b,c) mx=a>b?a:b;mx=mx>c?mx:c; float ma(float a,floa…… 题解列表 2022年06月13日 0 点赞 0 评论 317 浏览 评分:0.0
编写题解 1530: 蓝桥杯算法提高VIP-数字黑洞 摘要:解题思路:主要是字符串和整数,数组和字符串,String和StringBuffer类型之间的转换,搞清楚就很简单了,逻辑上转得有点复杂,需要耐心去体体验注意事项:参考代码:package Test;i…… 题解列表 2022年06月13日 0 点赞 0 评论 400 浏览 评分:0.0
1041: [编程入门]宏定义之找最大数(指针函数的应用) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #define max(a,b,c) mx=a>b?a:b;mx=mx>c?mx:c; void ma(float a,float…… 题解列表 2022年06月14日 0 点赞 0 评论 461 浏览 评分:0.0
1042: [编程入门]电报加密 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { char ch; while((ch=getchar())!=EOF){ …… 题解列表 2022年06月14日 0 点赞 0 评论 342 浏览 评分:0.0
1043: [编程入门]三个数字的排序 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int a,b,c; scanf("%d %d %d",&a,&b,&c); if(a>b){ …… 题解列表 2022年06月14日 0 点赞 0 评论 292 浏览 评分:0.0
编写题解 1006: [编程入门]三个数找最大值 摘要:解题思路:注意事项:参考代码:a,b,c=map(int,input().split())max=aif max<b: max=b if max<c: max=celse: …… 题解列表 2022年06月14日 0 点赞 0 评论 521 浏览 评分:0.0
1044: [编程入门]三个字符串的排序 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> #include<ctype.h> int main() { char str…… 题解列表 2022年06月14日 0 点赞 0 评论 324 浏览 评分:0.0