奖学金——充分发挥Java面向对象的特点 摘要:解题思路:注意事项:注意重写compareTo()时,是升序还是降序参考代码:import java.util.ArrayList;import java.util.List;import java.…… 题解列表 2022年11月25日 0 点赞 0 评论 308 浏览 评分:0.0
1043: [编程入门]三个数字的排序 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#pragma warning (disable:4996)int main() { int x, y,z; scanf("%d%d%d…… 题解列表 2022年11月25日 0 点赞 0 评论 286 浏览 评分:0.0
C语言常规解法 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int arr[3][3] = { {0} }; int i, j = 0; int sum…… 题解列表 2022年11月25日 0 点赞 0 评论 273 浏览 评分:0.0
最小新整数,删去山峰数 摘要:解题思路:只需要遍历整个string或数组,删去比后面大的位置即可!只需要遍历整个string或数组,删去比后面大的位置即可!只需要遍历整个string或数组,删去比后面大的位置即可!只需要遍历整个s…… 题解列表 2022年11月25日 0 点赞 0 评论 405 浏览 评分:0.0
[编程入门]三个数字的排序(三目运算符解决) 摘要:解题思路:注意事项:参考代码:int main(){ int a, b, c, d, e, f, g, h; scanf("%d%d%d", &a, &b, &c); d = a > b ? a…… 题解列表 2022年11月25日 0 点赞 0 评论 342 浏览 评分:0.0
20221125Snake row matrix 摘要:解题思路:先求出第0列的值,再求出每行其余元素与该行第0列元素之间的函数关系;注意事项:二维数组须初始化;参考代码:#include <stdio.h>void SRM(int n){ int i,j…… 题解列表 2022年11月25日 0 点赞 0 评论 280 浏览 评分:0.0
C++结构体链表合并常规解法 摘要:解题思路:创建链表,合并链表,排序,输出注意事项:参考代码:#include<iostream>using namespace std;struct student{ int id, sum; stu…… 题解列表 2022年11月25日 0 点赞 0 评论 339 浏览 评分:0.0
结构体之成绩统计 摘要:解题思路:注意事项:参考代码:n=int(input())sn=a=b=c=0d=[]for i in range(n): lis=input().split() if int(lis[-…… 题解列表 2022年11月26日 0 点赞 0 评论 322 浏览 评分:0.0
1013: [编程入门]Sn的公式求和(java代码) 摘要:解题思路:解法一:根据规律发现每一项数字都是前面一项的10倍+2(2,20+2, 220+2,.....)。解法二:把每一项数字拆开(2*100,(2*100+2*101),(2*100+2*101+…… 题解列表 2022年11月26日 0 点赞 0 评论 360 浏览 评分:0.0
C语言 自定义函数之整数处理& 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define Long 10 //改变Long的大小能输入更多的数并实现该功能int main(){ …… 题解列表 2022年11月26日 0 点赞 0 评论 308 浏览 评分:0.0