[编程入门]自由下落的距离计算-题解(C语言代码) 摘要: #include int main() { int n;//n是小球第n次落地 float m,m_,path_length=0.0;/…… 题解列表 2019年09月03日 0 点赞 6 评论 1864 浏览 评分:9.9
A+B for Input-Output Practice (III)-题解(Python代码) 摘要:核心语句:a, b= map(int, input().strip().split()) 这句话的作用是将输入的两个整数,中间以空格隔开,分别赋值给a,b ``` while True: …… 题解列表 2019年09月04日 0 点赞 0 评论 917 浏览 评分:9.9
蓝桥杯算法提高VIP-大数加法-题解(Python代码) 摘要:大数运算 相信很多刷过题的人都遇见过,C/C++中没有自带的函数,需要自己实现,而JAVA中有BigInteger可以很快处理大数运算,但是在Python中,大数运算显得尤其简单! ``` a …… 题解列表 2019年09月04日 0 点赞 2 评论 659 浏览 评分:9.9
[编程入门]阶乘求和-题解(C++描述 多种解题方法) 摘要:原题链接 [[编程入门]阶乘求和](https://www.dotcpp.com/oj/problem1014.html "[编程入门]阶乘求和") 解题思路: 1.循环方法解决:使用双重循环嵌套…… 题解列表 2019年09月04日 0 点赞 0 评论 1433 浏览 评分:9.9
STL库中set(红黑树)的用法 摘要:STL库中set的用法可以自行百度; set的插入,删除和查看的时间复杂度是哦o(logN)的 ```cpp #include #include #include #include #i…… 题解列表 2019年09月05日 0 点赞 0 评论 961 浏览 评分:9.9
2^k进制数 (递归解决) 摘要:```cpp #include #include using namespace std; int pr,max2,tot=0; void dp(int bit,int n){ if(b…… 题解列表 2019年09月05日 0 点赞 3 评论 1224 浏览 评分:9.9
K-进制数-题解(Python代码) 摘要:对于本题,按说可以从前到后递推地生成数列,但笔者直接进行了计算。 对于题中涉及的长度为n的字符串,`'0'`存在的位置不能为首位,也不能在其他`'0'`之后,那么即每一个`'0'`之前必有一个非0数…… 题解列表 2019年09月07日 0 点赞 0 评论 1900 浏览 评分:9.9
三角形-题解(Python代码) 摘要:本题笔者直接从最后一排累加得解。 ```python n_test=int(input()) for i_test in range(n_test): n=int(input()) …… 题解列表 2019年09月07日 0 点赞 0 评论 1361 浏览 评分:9.9
校门外的树-题解(C语言代码) 摘要: #include using namespace std; int main() { bool a[10001]; int i,j,s,e,L,M,num=0; cin >…… 题解列表 2019年09月08日 0 点赞 2 评论 1006 浏览 评分:9.9
【亲和数】-题解(C++代码) 摘要: #include #include using namespace std; void qys(set* ys,int n){ //求所有约数,使…… 题解列表 2019年09月08日 0 点赞 0 评论 953 浏览 评分:9.9