最小新整数,删去山峰数 摘要:解题思路:只需要遍历整个string或数组,删去比后面大的位置即可!只需要遍历整个string或数组,删去比后面大的位置即可!只需要遍历整个string或数组,删去比后面大的位置即可!只需要遍历整个s…… 题解列表 2022年11月25日 0 点赞 0 评论 408 浏览 评分: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 评论 345 浏览 评分:0.0
20221125Snake row matrix 摘要:解题思路:先求出第0列的值,再求出每行其余元素与该行第0列元素之间的函数关系;注意事项:二维数组须初始化;参考代码:#include <stdio.h>void SRM(int n){ int i,j…… 题解列表 2022年11月25日 0 点赞 0 评论 284 浏览 评分:0.0
C++结构体链表合并常规解法 摘要:解题思路:创建链表,合并链表,排序,输出注意事项:参考代码:#include<iostream>using namespace std;struct student{ int id, sum; stu…… 题解列表 2022年11月25日 0 点赞 0 评论 346 浏览 评分: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 评论 326 浏览 评分: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 评论 367 浏览 评分:0.0
C语言 自定义函数之整数处理& 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define Long 10 //改变Long的大小能输入更多的数并实现该功能int main(){ …… 题解列表 2022年11月26日 0 点赞 0 评论 312 浏览 评分:0.0
矩阵交换行-C语言 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #define N 5 int main() {//给定一个5*5的矩阵(数学上,一个r×c的矩阵是一个由r行c列元素排列成的矩…… 题解列表 2022年11月26日 0 点赞 0 评论 303 浏览 评分:0.0
全排列暴力枚举 摘要:```java import java.util.Scanner; public class 最大乘积 { static int max; public static void m…… 题解列表 2022年11月26日 0 点赞 0 评论 417 浏览 评分:0.0
简单计算,解方程法,设a[1]为x 摘要:#include<iostream>#include<iomanip>using namespace std;class myitem{public: double item_x; double it…… 题解列表 2022年11月26日 0 点赞 0 评论 373 浏览 评分:0.0