1351: 数字三角形4 摘要:```cpp #include using namespace std; int arr[30][30]; int main() { int n,x,y; cin>>n;…… 题解列表 2023年01月13日 0 点赞 0 评论 367 浏览 评分:9.9
3129: 信息学奥赛一本通T1352-奖金 摘要:```cpp #include #include #include #include using namespace std; #define N 20001 int n,m,tot=0…… 题解列表 2023年01月13日 0 点赞 0 评论 490 浏览 评分:2.7
3130: 烦人的幻灯片(slides) 摘要:```cpp #include using namespace std; int x[30],y[30],p[30][5],q[30][3]; int main() { int m…… 题解列表 2023年01月13日 0 点赞 0 评论 336 浏览 评分:7.3
归并排序求逆序对个数 摘要:解题思路:主要思想是归并排序,分为三种情况:①逆序数全部在左侧②逆序数全部在右侧③逆序数位于左右两侧参考代码:def merge_sort(li): if len(li) <= 1: …… 题解列表 2023年01月13日 0 点赞 0 评论 271 浏览 评分:9.9
陶陶摘苹果(水题) 摘要:```c #include int main(){ int a[11],i,n,cnt=0; for(i=0;i…… 题解列表 2023年01月13日 0 点赞 0 评论 309 浏览 评分:6.0
归并排序python解法 摘要:参考代码:def merge_sort(li): #数组长度不超过两个则不需要排序,直接返回 if len(li) <= 1: return mid=len(li)//…… 题解列表 2023年01月13日 0 点赞 0 评论 322 浏览 评分:9.9
1230: 最小重量机器设计问题 摘要:```cpp #include #include using namespace std; const int maxn=1001; int n,m,d,c[maxn][maxn],w[ma…… 题解列表 2023年01月13日 0 点赞 0 评论 364 浏览 评分:9.9
1231: 杨辉三角 摘要:```cpp #include using namespace std; int main() { int n,a[30][30]; while(cin>>n) …… 题解列表 2023年01月13日 0 点赞 0 评论 215 浏览 评分:6.0
1232: 查找最大元素 摘要:```cpp #include #include using namespace std; int main() { string str; while(cin>>str…… 题解列表 2023年01月13日 0 点赞 0 评论 271 浏览 评分:9.9
1233: 核电站问题 摘要:```cpp #include using namespace std; int main() { int n; long long dp[50]={0,2,4,7}; …… 题解列表 2023年01月13日 0 点赞 0 评论 307 浏览 评分:9.9