蓝桥杯算法训练VIP-学生成绩 (C++代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <string.h> struct student { char name[20]; …… 题解列表 2018年02月11日 0 点赞 0 评论 625 浏览 评分:0.0
汪汪与洋洋 (C++代码) 摘要:解题思路:题目一看,基本就是一道求概率的题目。仔细看下,感觉直接求有点麻烦,所以我们尝试使用动态规划的思想。题意基本等于让我们求用3个骰子丢出和大于9的概率是多少。这样我们可以用dp[i][j]表示用…… 题解列表 2018年02月11日 0 点赞 0 评论 883 浏览 评分:0.0
蓝桥杯算法提高VIP-邮票面值设计 (C++代码) 摘要:解题思路:注意事项:参考代码://so easy #include<iostream> #include<cstring>//头文件 using namespace std; int a[17…… 题解列表 2018年02月11日 0 点赞 1 评论 2221 浏览 评分:6.8
蓝桥杯算法提高VIP-铺地毯 (C++代码) 摘要:解题思路:注意事项:参考代码://easy #include <cstdlib> #include <cstdio> using namespace std; int n; int a[1…… 题解列表 2018年02月11日 3 点赞 0 评论 1462 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题10.4 (C语言代码) 摘要:解题思路:简单暴力233注意事项:参考代码:#include <stdio.h>void Change(int a[],int b[],int m,int n){ int i,t=0; for(i=n…… 题解列表 2018年02月11日 0 点赞 0 评论 509 浏览 评分:0.0
IP判断 (C语言代码) 摘要:#include <stdio.h>#include <string.h>int main(){ int i=0,j,flag=1,s=0; char a[1000][31]; …… 题解列表 2018年02月11日 0 点赞 0 评论 850 浏览 评分:0.0
C语言训练-求函数值 (C语言代码) 摘要:#include <stdio.h>int main(){ int x,f=10; scanf("%d",&x); if(x==1)f=10; else f=1…… 题解列表 2018年02月11日 0 点赞 0 评论 791 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题3.7 (C语言代码) 摘要:解题思路:每个字母都向后移四位 我们可以通过一个循环来完成注意事项:参考代码:#include<stdio.c>int main (){char c1='C';char c2='…… 题解列表 2018年02月11日 0 点赞 0 评论 647 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题4.9 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main (){ float f; printf("请输入华氏温度:"); scanf("%f",&f); print…… 题解列表 2018年02月11日 0 点赞 0 评论 599 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.4 (C语言代码) 摘要:解题思路:用穷举法 一个个去比注意事项:要先定义一个max变量 假设这个最大值等于data[0]或者其他都行,然后再一个个去对比参考代码:#include<stdio.h>int main (){in…… 题解列表 2018年02月11日 0 点赞 0 评论 577 浏览 评分:0.0