1315: 田忌赛马 摘要:```cpp #include using namespace std; int b[10001],bb[10001]; long long sum,t; int main() { …… 题解列表 2023年05月03日 0 点赞 0 评论 533 浏览 评分:9.9
素数回文(c语言代码) 摘要:```c #include #include int IsPrime(int n); int IsParlindrome(int n); int main()//素回文数 { i…… 题解列表 2023年05月03日 0 点赞 0 评论 444 浏览 评分:9.9
1316: 最长不下降子序列的长度 摘要:```cpp #include using namespace std; int main() { int n,t,max=-1,a[5001],b[5001]; scan…… 题解列表 2023年05月03日 0 点赞 0 评论 495 浏览 评分:6.0
1317: 最长公共子序列lcs 摘要:```cpp #include #include using namespace std; int main() { int dp[2002][2002]; memset…… 题解列表 2023年05月03日 0 点赞 0 评论 706 浏览 评分:9.9
1318: 选课(c++代码) 摘要:```cpp #include #include using namespace std; const int maxn=301; int f[maxn][maxn],bro[maxn],s…… 题解列表 2023年05月03日 0 点赞 0 评论 558 浏览 评分:9.0
统计字母个数(c语言代码) 摘要:```c #include int main()//统计字符个数 { char ch = 0; int alphabet[26] = { 0 }; while ((ch = ge…… 题解列表 2023年05月03日 0 点赞 0 评论 496 浏览 评分:9.9
循环入门练习5 ---python代码水一个 摘要:解题思路:注意事项:参考代码:x=int(input())for i in range(1,x): if x%i == 0: print(i)…… 题解列表 2023年05月03日 0 点赞 0 评论 431 浏览 评分:0.0
1671:小九九(c++)双循环+if语句 摘要:解题思路:双循环+if语句//附上“%d*%d=%-3d”数据类型注意事项:判断语句if(i>=j)用于输出矩阵中对角线以下的数据参考代码:#include<iostream>#include<cst…… 题解列表 2023年05月04日 0 点赞 0 评论 550 浏览 评分:9.9
优质题解 贪心 + 优先队列 摘要:# 贪心 + 优先队列 ## 解题思路 > 问题一:某一娱乐项目所需要支付的钱随着购买人数的增加是一个怎样的趋势? 可以发现,单价为$$one = k \times x + b$$,购买…… 题解列表 2023年05月04日 1 点赞 0 评论 1539 浏览 评分:9.8
难度比蛇形矩阵简单多了 摘要:解题思路:注意事项:看了之前的Python的题解感觉自己的效率应该会差一点,因为用了双重循环,当应该会清晰一些参考代码:l=[]n=k=0for i in range(5): l.append(…… 题解列表 2023年05月04日 0 点赞 0 评论 371 浏览 评分:0.0