java开荒者--list的用法 摘要:import java.math.*;public class Main {public static void main(String[]args) { Scanner sc=new Scanner…… 题解列表 2024年03月13日 0 点赞 0 评论 217 浏览 评分:0.0
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 评论 270 浏览 评分:9.9
java--study||O.o 摘要:参考代码: import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader…… 题解列表 2024年03月13日 0 点赞 0 评论 273 浏览 评分:9.9
题目 1163: 排队买票(排列函数next_permutation(a,a+N)) 摘要:解题思路:使用next_permutation函数对数组a进行排列,即将数组a中的元素按照不同的顺序排列,直到所有可能的排列都被尝试过为止。注意事项:参考代码:#include<iostream>#i…… 题解列表 2024年03月13日 1 点赞 0 评论 272 浏览 评分:9.9
1164: 数组的距离(绝对值abs) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>#include<cmath>using namespace std;int main(){ …… 题解列表 2024年03月13日 1 点赞 0 评论 408 浏览 评分: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 评论 360 浏览 评分:9.9
1169: 绝对值排序(改编一下sort函数,超方便) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;bool cmp(int a,int b);int ma…… 题解列表 2024年03月13日 0 点赞 0 评论 225 浏览 评分:9.9
python 2810: 鸡尾酒疗法 摘要:解题思路:有效率 = 有效的病例数 / 总病例数参考代码:n = int(input()) for i in range(n): arr = list(map(int, input().s…… 题解列表 2024年03月13日 0 点赞 0 评论 337 浏览 评分:9.9
python 2811: 救援 摘要:参考代码:import math n = int(input()) x1, y1 = 0, 0 pace = 50 time = 0 for i in range(n): xn, …… 题解列表 2024年03月13日 0 点赞 0 评论 600 浏览 评分:9.9
判断是偶数赋值为-1 摘要:参考代码:import java.util.Arrays;import java.util.Scanner;public class Main { public static void main…… 题解列表 2024年03月13日 0 点赞 0 评论 157 浏览 评分:0.0