最小新整数,删去山峰数 摘要:解题思路:只需要遍历整个string或数组,删去比后面大的位置即可!只需要遍历整个string或数组,删去比后面大的位置即可!只需要遍历整个string或数组,删去比后面大的位置即可!只需要遍历整个s…… 题解列表 2022年11月25日 0 点赞 0 评论 503 浏览 评分:0.0
C语言常规解法 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int arr[3][3] = { {0} }; int i, j = 0; int sum…… 题解列表 2022年11月25日 0 点赞 0 评论 394 浏览 评分: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 评论 361 浏览 评分:0.0
奖学金——充分发挥Java面向对象的特点 摘要:解题思路:注意事项:注意重写compareTo()时,是升序还是降序参考代码:import java.util.ArrayList;import java.util.List;import java.…… 题解列表 2022年11月25日 0 点赞 0 评论 389 浏览 评分:0.0
Kruskal 求最小生成树+ 并查集 摘要:解题思路: 看不加码头能不能构成最小生成树,如果不可以,则答案为加上码头和建路的最小生成树, ,,,如果可以,则在不加码头和 加上码头的最小生成树取最小值注意事项:建议把初始化码头和把码头的边加…… 题解列表 2022年11月25日 0 点赞 0 评论 567 浏览 评分:9.9
出圈(约瑟夫环)问题---用C语言解决 摘要:```c #include int main(void) { int n,m; while(scanf("%d%d", &n,&m)!=EOF) { int row[n]; …… 题解列表 2022年11月25日 0 点赞 0 评论 787 浏览 评分:9.9
2771: 大象喝水 摘要:解题思路:注意事项:参考代码:import math h,r = map(int,input().strip().split()) v = math.pi * h * r**2 print(mat…… 题解列表 2022年11月24日 0 点赞 0 评论 752 浏览 评分:6.0
超简单的C++ 摘要:参考代码:#include<iostream> using namespace std; int main() { long long int sum; long long …… 题解列表 2022年11月24日 0 点赞 0 评论 519 浏览 评分:9.9
N进制的加,C语言 摘要: #include #include #define N 10// 进制数 #define M '9'// 进制数 - 1 void reverse(char* c, int l, i…… 题解列表 2022年11月24日 0 点赞 0 评论 472 浏览 评分:9.9
无符号数的好处,省去负数讨论 摘要: 要点以下两点 #include int main() { int arr[32] = {0}; unsigned int n, index = 0;// 第一点 sca…… 题解列表 2022年11月24日 0 点赞 0 评论 450 浏览 评分:0.0