编写题解 1025: [编程入门]数组插入处理 -- 冒泡排序原理 摘要:解题思路:运用冒泡排序的原理,将插入的数据,与排好顺序的数组,依次比大小。 ```c #include int main(void) { int a[10]; //插入数据后的数组长度。…… 题解列表 2023年02月10日 0 点赞 0 评论 183 浏览 评分:0.0
1334: [NOIP2004]合唱队形 摘要:解题思路:这道题其实就是从前和从后来求两个不下降序列。 b[i]:从第i个数开始的最长不下降序列 c[i]:从第i个数结束的最长不下降序列 类似与登山。注意事项:注意>号和<号!参考代码:#in…… 题解列表 2023年02月10日 0 点赞 0 评论 244 浏览 评分:9.9
2128: 信息学奥赛一本通T1264-合唱队形 摘要:解题思路:运用动态规划解此题!!!注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int a[1005],b[1005],c[1005…… 题解列表 2023年02月10日 0 点赞 0 评论 211 浏览 评分:6.0
C语言训练-"水仙花数"问题1 简单解法 摘要:解题思路: 一 if else嵌套使用 二 明确求输入数字的各个位数上的数字的方法: 1.结合整形数据类型与除法求特定位数上的数字 …… 题解列表 2023年02月10日 0 点赞 0 评论 223 浏览 评分:9.9
2808: 买房子 (中关村怎么可能有这么便宜的房子) 摘要:解题思路:注意事项:参考代码:#include <iostream> // #include <sstream> #include <cstdio> // #include <algorithm…… 题解列表 2023年02月10日 0 点赞 0 评论 282 浏览 评分:0.0
2805: 乘方计算 快速幂方法 摘要:解题思路: 快速幂注意事项:参考代码:#include <iostream> // #include <sstream> #include <cstdio> // #include <algor…… 题解列表 2023年02月09日 0 点赞 0 评论 334 浏览 评分:0.0
自定义函数之字符串反转(除了hellow word 外简单的代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[100]; gets(str); int n = strl…… 题解列表 2023年02月09日 0 点赞 0 评论 216 浏览 评分:9.9
自定义函数之数字分离(这样也行) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char arr[5]; gets(arr); int n = strlen…… 题解列表 2023年02月09日 0 点赞 0 评论 195 浏览 评分:9.9
因数平方和(数论分块+数学式子推导) 摘要:~~~ #include using namespace std; const int mod=1e9+7; typedef long long ll; int n; ll qmin(ll…… 题解列表 2023年02月09日 0 点赞 0 评论 667 浏览 评分:5.0
刷题统计Pthon 摘要:解题思路:注意事项:参考代码:a,b,n=map(int,input().split())week=5*a+2*bdays=(n//week)*7n%=weekif n<=a*5: day=0 …… 题解列表 2023年02月09日 0 点赞 0 评论 254 浏览 评分:0.0