题解列表

筛选

2819: 数字反转

摘要:``` #include using namespace std; int main(){ int a,ans=0; cin>>a; while(a){ ans=ans*10+……

c代码记录之验证字串

摘要:1.空串是所有字符串的子串,但这题好像不验证这个 2.gets不通过,scanf能通过 #include #include int main() { ……

Yu校门外的树(差分+前缀和)

摘要:# 解题思路 简单循环模拟题解很多人发过了,我这里提供一种高效方法。 # 参考代码 ```c++ #include using namespace std; int main() {……

Yu:1464: 蓝桥杯基础练习VIP-分解质因数

摘要:**解题思路:** 这道题虽然要求找到质因数,但其实不需要判断质数。 因为每个合数都可以拆解为n个质数,你只要从小到大的分解每个因数,就不存在合数。 例:8 = 2 * 2 * 2,……

题解 2771: 大象喝水

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    double h,r;    cin>>h>>r; ……

编写题解 2771: 大象喝水

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    double h,r;    cin>>h>>r; ……