题解列表

筛选

小白也能看懂

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int i,n; scanf("%d",&n); char arr[5000……

c++二分排序

摘要:解题思路:看到的第一眼原本想使用小根堆找出最小的手牌,看了数据量改用了二分法,因为能凑出手牌的数量是单调的注意事项:参考代码:#include<bits/stdc++.h>#define INF 0x……

3分钟写完一个题

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;const int N=2005;int n;bool chess[N][N];//使用最简单……

2998: 电影票

摘要:解题思路:注意事项:参考代码:x = int(input()) print(x, x * 10)……

2997: 梯形面积

摘要:解题思路:注意事项:参考代码:h = 2 * 150 / 15  # 三角形的高 S = (15 + 25) * h / 2 #梯形面积 print("%.2f" %S)……

2886: 图像旋转

摘要:解题思路:注意事项:参考代码:n, m = map(int, input().split()) A, B = [], [[0] * n for _ in range(m)] for _ in ra……