积木画---详细解释 摘要:解题思路:先找到一个n的独立整体数目(n为整体表示无法从前面的n-1个当中去凑出2xn) 当n=1时有一个整体(I型)n=2时有一个整体(横放的上下两个I型,竖直放的两个I型是n=1的独立整体拼出来的…… 题解列表 2024年03月13日 2 点赞 0 评论 723 浏览 评分: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 评论 325 浏览 评分:9.9
java--study||O.o 摘要:参考代码: import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader…… 题解列表 2024年03月13日 0 点赞 0 评论 304 浏览 评分:9.9
题目 1163: 排队买票(排列函数next_permutation(a,a+N)) 摘要:解题思路:使用next_permutation函数对数组a进行排列,即将数组a中的元素按照不同的顺序排列,直到所有可能的排列都被尝试过为止。注意事项:参考代码:#include<iostream>#i…… 题解列表 2024年03月13日 1 点赞 0 评论 309 浏览 评分:9.9
1164: 数组的距离(绝对值abs) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>#include<cmath>using namespace std;int main(){ …… 题解列表 2024年03月13日 1 点赞 0 评论 442 浏览 评分: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日 1 点赞 0 评论 398 浏览 评分:9.9
1169: 绝对值排序(改编一下sort函数,超方便) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;bool cmp(int a,int b);int ma…… 题解列表 2024年03月13日 0 点赞 0 评论 248 浏览 评分:9.9
python 2810: 鸡尾酒疗法 摘要:解题思路:有效率 = 有效的病例数 / 总病例数参考代码:n = int(input()) for i in range(n): arr = list(map(int, input().s…… 题解列表 2024年03月13日 0 点赞 0 评论 365 浏览 评分: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 评论 636 浏览 评分:9.9
java--study||O.o 摘要:参考代码: import java.util.Scanner; public class Main { static int n, arr[]; public static void…… 题解列表 2024年03月13日 0 点赞 0 评论 325 浏览 评分:9.9