优质题解 上车人数 (C++代码)(求出规律即可,简单易懂) 摘要:解题思路: 我们只需要罗列出每一站的上车人数和每一站的下车人数来求出总数即可看出规律。 我们设上车人数为始发站人数为 a , 第二站上车人数为 x ,由此列出规律. …… 题解列表 2018年09月22日 12 点赞 2 评论 2920 浏览 评分:5.2
C语言程序设计教程(第三版)课后习题5.4 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(int argc, char *argv[]){ int a,b,c,t; scanf("%d%d%d",&a,&b…… 题解列表 2018年09月22日 0 点赞 0 评论 840 浏览 评分:0.0
C语言训练-谁家孩子跑最慢* (C++代码) 摘要:解题思路:C++全排列函数next_permutation1-9都是不重复的,总共45分,每家分得15分,保证第一名在李家,第二名在王家,所以就有了第一个 if 语句了。为了不打乱顺序,定义另一个数组…… 题解列表 2018年09月22日 0 点赞 0 评论 1350 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题4.9 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(int argc, char *argv[]){ float x,c; scanf("%f",&x); c=5*(x…… 题解列表 2018年09月22日 0 点赞 0 评论 710 浏览 评分:0.0
简单的a+b (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int A, B; while (scanf_s("%d%d", &A, &B) != 0) { printf…… 题解列表 2018年09月21日 0 点赞 0 评论 897 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.6 (C++ 和 Java 代码) 摘要:题目描述:打印所有的"水仙花数",所谓"水仙花数"是指一个三位数,其各位数字立方和等于该本身。 例如:153 是一个水仙花数,因为153=13+53+33解题思路:因为水仙花数是一个三位数,所以先用一…… 题解列表 2018年09月21日 14 点赞 0 评论 3150 浏览 评分:9.9
C语言程序设计教程(第三版)课后习题6.8 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,t; float sum=0,s,x=1,y=2; scanf("%d",&n); for(i=…… 题解列表 2018年09月21日 0 点赞 0 评论 720 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.7 (C语言代码) 摘要:解题思路:常规的算法时间会超限。注意事项:参考代码:#include<stdio.h>#include<math.h>int main(void){ int n; int i,j; …… 题解列表 2018年09月21日 0 点赞 0 评论 920 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.5 (C语言代码) 摘要:解题思路:根据题意可知道注意事项:scanf里面几个%d之间的空格参考代码:#include "stdafx.h"#include <stdio.h>int main(int argc, char* …… 题解列表 2018年09月21日 0 点赞 0 评论 1985 浏览 评分:0.0
校门外的树 (C++代码) 简单的dp 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int dp[10000];int main(){ int n,c; cin>>n>…… 题解列表 2018年09月21日 0 点赞 0 评论 788 浏览 评分:0.0