C语言训练-排序问题<1> (C++代码) 摘要:解题思路:懒人做法注意事项:参考代码:#include<iostream> #include<algorithm> using namespace std; int main() { in…… 题解列表 2018年06月04日 1 点赞 0 评论 1007 浏览 评分:2.0
Hello, world! (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstdio> using namespace std; int main() { int a; …… 题解列表 2018年06月04日 1 点赞 0 评论 1159 浏览 评分:2.0
C语言程序设计教程(第三版)课后习题8.2 (C语言代码) 摘要:解题思路: 一元二次方程 ax²+bx+c=0 (a≠0) 其求根依据判定式△的取值为三种 ( 题解列表 2018年06月04日 4 点赞 4 评论 715 浏览 评分:2.0
【回文数(二)】 (C语言代码)发表出来当保存,方便以后阅读。 摘要:#include<stdio.h> int save(int a[], int m)//将数m的值存入数组中,并返回位数。 { int i; for(i = 0; m >…… 题解列表 2018年06月14日 4 点赞 1 评论 664 浏览 评分:2.0
倒数第二 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<algorithm> using namespace std; int a[100]={0}; int m…… 题解列表 2018年06月18日 0 点赞 0 评论 1080 浏览 评分:2.0
明明的随机数 (Java代码) 摘要:解题思路:注意事项:开局10连wa,我以为是其他错了,没想到忘判断i==0的条件了参考代码:package cWeb.acm; import java.util.ArrayList; impo…… 题解列表 2018年06月23日 0 点赞 0 评论 1686 浏览 评分:2.0
汽水瓶 数学角度解释 2个空瓶子=喝1瓶 摘要:解题思路:找规律,1个空瓶子没得喝,2个可以先找老板借1瓶满的,喝完有3个,换一瓶满的还给老板, 3个喝一瓶,4个先换3个喝一瓶,变成2个,所以是1+1=2 …… 题解列表 2018年09月02日 7 点赞 0 评论 1120 浏览 评分:2.0
蓝桥杯算法训练VIP-数对 (C++代码) 摘要:#include <bits/stdc++.h> using namespace std; int main() { int n,a[100],t=0; cin>>n; for(in…… 题解列表 2018年07月01日 2 点赞 0 评论 1186 浏览 评分:2.0
蓝桥杯算法训练VIP-特殊的数字四十 (C++代码) 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h> using namespace std; int f(int n) { int sum=0; while(…… 题解列表 2018年07月02日 2 点赞 0 评论 940 浏览 评分:2.0
2004年秋浙江省计算机等级考试二级C 编程题(1) (C语言代码) 摘要:解题思路: 不调用math函数(如果没有懂得原理只会调用函数的后果你懂的) 本题意在考察我们数组数据的 录入,保存,查找,交换。 对于本题: 1.定义数组 a[20] …… 题解列表 2018年07月04日 7 点赞 4 评论 887 浏览 评分:2.0