1169: 绝对值排序(改编一下sort函数,超方便) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;bool cmp(int a,int b);int ma…… 题解列表 2024年03月13日 0 点赞 0 评论 219 浏览 评分:9.9
题目 1168: 简单计算(先数学计算,递推得结论,然后再做题) 摘要:解题思路:注意事项:参考代码:1.列出基本递推关系式子:a[1] = (a[0] + a[2]) /2- c[1]a[2] = (a[1] + a[3]) /2- c[2]a[3] = (a[2] +…… 题解列表 2024年03月13日 0 点赞 0 评论 351 浏览 评分:9.9
1164: 数组的距离(绝对值abs) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>#include<cmath>using namespace std;int main(){ …… 题解列表 2024年03月13日 1 点赞 0 评论 399 浏览 评分:9.9
题目 1163: 排队买票(排列函数next_permutation(a,a+N)) 摘要:解题思路:使用next_permutation函数对数组a进行排列,即将数组a中的元素按照不同的顺序排列,直到所有可能的排列都被尝试过为止。注意事项:参考代码:#include<iostream>#i…… 题解列表 2024年03月13日 1 点赞 0 评论 264 浏览 评分:9.9
java--study||O.o 摘要:参考代码: import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader…… 题解列表 2024年03月13日 0 点赞 0 评论 266 浏览 评分:9.9
1162: 密码(记概论)https://www.dotcpp.com/run/15402142 摘要:解题思路:记解题思路注意事项:参考代码:#include<iostream>using namespace std;int main(){ int m; cin>>m; string nu…… 题解列表 2024年03月13日 0 点赞 0 评论 261 浏览 评分:9.9
java开荒者--list的用法 摘要:import java.math.*;public class Main {public static void main(String[]args) { Scanner sc=new Scanner…… 题解列表 2024年03月13日 0 点赞 0 评论 213 浏览 评分:0.0
python 2809: 菲波那契数列 摘要:参考代码:k = int(input()) arr = [0 for _ in range(1, 47)] arr[0], arr[1] = 1,1 for i in range(2, len(…… 题解列表 2024年03月13日 0 点赞 0 评论 280 浏览 评分:0.0
积木画---详细解释 摘要:解题思路:先找到一个n的独立整体数目(n为整体表示无法从前面的n-1个当中去凑出2xn) 当n=1时有一个整体(I型)n=2时有一个整体(横放的上下两个I型,竖直放的两个I型是n=1的独立整体拼出来的…… 题解列表 2024年03月13日 2 点赞 0 评论 686 浏览 评分:9.9
java--study||O.o 摘要:参考代码: import java.math.BigInteger; import java.util.Scanner; public class Main { public stat…… 题解列表 2024年03月13日 0 点赞 0 评论 255 浏览 评分:9.9