大家不要以为我在装X,但是真的很简单 摘要:解题思路:直接用 import math 就好了注意事项:无参考代码:import mathprint(math.factorial(1977))…… 题解列表 2022年03月16日 0 点赞 1 评论 384 浏览 评分:8.0
动态规划!!! 摘要:```cpp // f[i][j] = f[i - 1][j] + f[i][j - i] #include using namespace std; const int N = 1…… 题解列表 2022年03月16日 0 点赞 0 评论 529 浏览 评分:8.0
饮料换购python 摘要:解题思路:蓝桥杯2015年第六届真题-饮料换购 - C语言网 (dotcpp.com)注意事项:参考代码:n = int(input())ans = 0while n>2: mod = n % …… 题解列表 2022年03月17日 0 点赞 0 评论 691 浏览 评分:8.0
那个顺序放在后面还要好好理解一下 摘要:解题思路:也是看了题解注意事项:写在代码里面了参考代码:#include<stdio.h>int main(){ float m,n,sum=0,i=0,t; scanf("%f %f",&m,&n)…… 题解列表 2022年03月18日 0 点赞 0 评论 336 浏览 评分:8.0
题解 2302: 蓝桥杯2019年第十届省赛真题-糖果-状态压缩dp思想 摘要:解题思路:状态压缩将每种状态用二进制的形式表示例如第一包糖果:1 1 2可以表示为:00011表示第一种和第二种口味都有而11111表示五种口味都有dp[j]:表示当j状态的时,最少需要几包糖果构成状…… 题解列表 2022年03月19日 0 点赞 0 评论 979 浏览 评分:8.0
归并排序代码简易版 摘要: #define _CRT_SECURE_NO_WARNINGS #include #include int arr = 0; int a[500005], b[500005],…… 题解列表 2022年03月19日 0 点赞 0 评论 453 浏览 评分:8.0
1000:简单而又容易出错的题 摘要:解题思路:本题很简单,但是注意此题是多组测试数据,即需要不停的接收系统的测试输入,你都可以计算结果并输出,像本人第一次输出只写了一次简单的a+b,全错QwQ:#include<cstdio>#incl…… 题解列表 2022年03月21日 0 点赞 1 评论 241 浏览 评分:8.0
1001:新手题1 摘要:解题思路:一个打印题目,用cout即可,但是注意*号!错误代码:#include<iostream>using namespace std;int main(){ cout<<"Hello,World…… 题解列表 2022年03月21日 0 点赞 0 评论 501 浏览 评分:8.0
参考欧拉筛,利用数组计算,两次循环,一次判断(C语言) 摘要:解题思路:定义一个规模为3000的数组,将数组的第[A的因数和]赋值为A。这样当遍历到B时,如果数组的第[B]项的值和B的因数和相等,就有n[A的因数和](A)==n[B](B的因数和)且A的因数和=…… 题解列表 2022年03月22日 0 点赞 1 评论 630 浏览 评分:8.0
简洁,详细,c++ 摘要:```cpp #include using namespace std; int main(){ long long time; cin >>…… 题解列表 2022年03月22日 0 点赞 0 评论 474 浏览 评分:8.0