小九九-题解(C语言代码)注意细节 摘要:注意事项:输出格式左对齐,%-3d就是左对齐如果这个整形不够3位,就补空格,比如 i=3;printf("%-3d",i); 输出结果是3空格空格参考代码:#include<stdio.h> m…… 题解列表 2020年08月28日 0 点赞 3 评论 1855 浏览 评分:9.8
C语言训练-"水仙花数"问题2-题解(C语言代码) 摘要:注意事项:水仙花是三位数,所以100~1000之间的数参考代码:#include<stdio.h> #include<math.h> main() { int i,a,x; …… 题解列表 2020年08月28日 0 点赞 0 评论 957 浏览 评分:9.9
蓝桥杯2015年第六届真题-穿越雷区-题解(Python代码) 摘要:解题思路: 很明显用广搜就能解决。参考代码:n = int(input()) #模拟地图 mMap = [list(input().split()) for _ in range(n)] …… 题解列表 2020年08月28日 0 点赞 0 评论 764 浏览 评分:9.9
C语言训练-"水仙花数"问题1-题解(C语言代码) 摘要:参考代码:#include<stdio.h> main() { int a,x=0,j,m; scanf("%d",&m); a=m; while(a!=0…… 题解列表 2020年08月28日 0 点赞 0 评论 814 浏览 评分:9.9
求长方形面积-题解(C语言代码) 摘要:解题思路:长方形的周长公式:C=2*(a+b),长方形的面积公式:S=a*b注意事项:打印“C:”、“S:”,使用半角冒号参考代码:#include<stdio.h> main() { …… 题解列表 2020年08月28日 0 点赞 0 评论 1167 浏览 评分:7.5
求平方和-题解(C语言代码) 摘要:解题思路:一种是直接a*a+b*b,还有一种是用数学函数pow(a,2)+pow(b,2)注意事项:当用数学函数时不要忘记头文件#include<math.h>参考代码:#include<stdio.…… 题解列表 2020年08月28日 0 点赞 4 评论 2444 浏览 评分:9.9
[编程入门]完数的判断-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>int stu(int n){//找因数 ,判断完数。 int a[1000]; int i=…… 题解列表 2020年08月28日 0 点赞 0 评论 1159 浏览 评分:9.9
[编程入门]打印图案-题解(C语言代码) 摘要:解题思路:注意事项:U是空格,图形是这样的UU*U*U******参考代码:#include<stdio.h> main() { printf(" *\n * *\n*****\n")…… 题解列表 2020年08月28日 0 点赞 0 评论 1015 浏览 评分:9.0
我不是张玉想——垒骰子-题解(C++代码) 摘要:## 一、解题思路: #### 1、暴力、动态规划(只得22分):时间复杂度o(n),n太大还是超时 #### 2、看别人博客了解到要用矩阵快速幂,但菜鸡的我没有听过,所以我就去B站学了快速幂、矩…… 题解列表 2020年08月28日 0 点赞 0 评论 994 浏览 评分:8.0
[编程基础]输入输出练习之第二个数字-题解(C语言代码) 摘要:#include<stdio.h>int main(){ int n; scanf("%*d %d %*d",&n); printf("%d",n);}…… 题解列表 2020年08月28日 0 点赞 0 评论 497 浏览 评分:0.0