【蟠桃记】 (C++代码) 摘要:解题思路:构造函数注意事项:参考代码:#include<iostream>using namespace std;int lsum(int n){ if (n == 1) { return 1; }…… 题解列表 2018年08月27日 0 点赞 0 评论 1006 浏览 评分:0.0
P1022 (C++代码) 摘要:解题思路: 负数的短除其实和正数的短除是一样的. 区别只在于,负数短除后可能出现余为负的情况,而进制数中数位是不为负的.&n 题解列表 2018年08月27日 4 点赞 0 评论 1514 浏览 评分:9.9
字符串中间和后边*号删除 (C++代码) 摘要:解题思路: 没有ac成功,不知道哪里错了,求大佬帮忙看看。 1.定义另一个指针变量s,讲字符串a赋值给s,定义一个数组b,将字符串a中字母得位置保存下来; …… 题解列表 2018年08月27日 0 点赞 0 评论 1253 浏览 评分:0.0
大神的探险 之 满载而归 (Java代码) 摘要: Scanner sc=new Scanner(System.in); while(sc.hasNext()) { double a=sc.nextDouble(); doubl…… 题解列表 2018年08月27日 0 点赞 0 评论 1610 浏览 评分:0.0
C语言训练-排序问题<1> (C++代码) 摘要:解题思路:插入排序是一个对少量元素进行排序的有效算法注意事项:参考代码:#include<iostream>using namespace std;void insertSort(int[],int …… 题解列表 2018年08月27日 0 点赞 0 评论 801 浏览 评分:0.0
优质题解 大神的探险 之 满载而归 (C语言代码) 摘要:解题思路: 蜗牛爬井。。 由于最后肯定需要在白天爬上去,所以不妨先将井高减去白天一天能爬的高度,然后计数一天, 接下来再继续分析, &nbs 题解列表 2018年08月27日 3 点赞 0 评论 1401 浏览 评分:0.0
汽水瓶 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,a[10],i=0; int k,m; while(~scanf("%d",…… 题解列表 2018年08月27日 0 点赞 0 评论 920 浏览 评分:0.0
A+B for Input-Output Practice (I) (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b; while(~scanf("%d %d",&a,&b)) { …… 题解列表 2018年08月27日 3 点赞 0 评论 741 浏览 评分:0.0
大神的探险 之 破解密码 (Java代码)(范围是个坑) 摘要:Scanner sc=new Scanner(System.in); while(sc.hasNext()) { long a=sc.nextLong(); long b=sc.…… 题解列表 2018年08月27日 0 点赞 0 评论 1058 浏览 评分:0.0