1068: 二级C语言-温度转换 摘要:直接循环打印。#include<bits/stdc++.h> using namespace std; int main(){ int C; double F; …… 题解列表 2021年12月13日 0 点赞 0 评论 281 浏览 评分:0.0
1017: [编程入门]完数的判断——不用指针数组。 摘要:解题思路:先判断是否是完数,当是完数时再考虑计算和输出因子。但感觉比较麻烦,不够减简洁。注意事项:参考代码:#include<stdio.h>int isPerfectNumber(int numbe…… 题解列表 2021年12月13日 0 点赞 0 评论 235 浏览 评分:0.0
c语言巧妙解答 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[40]; int i,n; while(~s…… 题解列表 2021年12月13日 0 点赞 0 评论 260 浏览 评分:0.0
C语言-九九乘法表 摘要:解题思路:两次for循环,这里用到了另一个知识点C语言中的% 2d是printf()函数的输出格式。表示将数字按宽度为2,采用右对齐方式输出,若数据位数不到2位,则左边补空格。相反,负则表示左对齐。注…… 题解列表 2021年12月13日 0 点赞 0 评论 309 浏览 评分:0.0
宏定义之找最大数-C语言 摘要:解题思路: 两两比较注意事项:参考代码:#include<stdio.h>#include<math.h>#define MAX(x,y,z) (x>y?x:y)>z?(x>y?x:y):zin…… 题解列表 2021年12月13日 0 点赞 0 评论 234 浏览 评分:0.0
纯for循环 刚入门表示标准解答看不懂 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i; double b=0.0,m,c,a=0.0,d,e; scanf("%lf…… 题解列表 2021年12月13日 0 点赞 0 评论 377 浏览 评分:0.0
宏定义之闰年判断-C语言 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define LEAP_YEAR(y) y=n%400int main(){ int n,y; scanf("%d",…… 题解列表 2021年12月13日 0 点赞 0 评论 221 浏览 评分:0.0
宏定义的练习-C语言 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>#define area a%bint main(){ int a,b; scanf("%d…… 题解列表 2021年12月13日 0 点赞 0 评论 242 浏览 评分:0.0
带参数宏定义练习-C语言 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define change(a,b) temp=a,a=b,b=tempint main(){int a,b,temp;scanf("…… 题解列表 2021年12月13日 0 点赞 0 评论 247 浏览 评分:0.0
1442: 蓝桥杯2013年第四届真题-打印十字图 摘要: n = int(input()) l = [['.']*(4*n+5+1) for _ in range(4*n+5+1)] l[2*n+3][2*n+3] = '$' …… 题解列表 2021年12月13日 0 点赞 0 评论 405 浏览 评分:9.9