2816: 统计满足条件的4位数个数 摘要:解题思路:注意事项:参考代码:s = 0 n = int(input()) l = list(map(int,input().split())) for i in l: a = i %…… 题解列表 2023年02月21日 0 点赞 0 评论 406 浏览 评分:9.9
2817: 级数求和 摘要:注意事项:参考代码:Sn = n = 0 k = int(input()) while True: n = n + 1 Sn = Sn + 1/n if Sn > 题解列表 2023年02月21日 0 点赞 0 评论 407 浏览 评分:2.0
2818: 分离整数的各个数位 摘要:解题思路:注意事项:参考代码:a = input() for i in a[::-1]: print(i,end=' ')代码2:a = input() a = a[::…… 题解列表 2023年02月22日 0 点赞 0 评论 513 浏览 评分:9.0
c++----map的统计功能 摘要: #include using namespace std; int main() { int n; cin>>n; int a…… 题解列表 2023年02月22日 0 点赞 0 评论 486 浏览 评分:0.0
高斯求和 (c++代码) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int n;int main(){ cin>>n; int s=(1+n)*n/2;…… 题解列表 2023年02月22日 0 点赞 0 评论 414 浏览 评分:9.9
编写题解 1102: 明明的随机数 摘要:解题思路:注意事项:参考代码:input()lst=list(set(int(i) for i in input().split()))lst.sort()lst=list(map(str,lst))…… 题解列表 2023年02月22日 0 点赞 0 评论 435 浏览 评分:0.0
两种方法,简单易懂!!!! 摘要:解题思路:注意事项:数组可以不开那么大。参考代码:#include<bits/stdc++.h>using namespace std;//int a,b,c;int n,a[101][101],s,…… 题解列表 2023年02月22日 0 点赞 0 评论 458 浏览 评分:9.9
求和很简单,只要掌握方法就可以 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,m,s=0;//s要赋初值!!! cin>>n>…… 题解列表 2023年02月22日 0 点赞 0 评论 501 浏览 评分:9.9
蓝桥杯2018年第九届真题-次数差-C++ 摘要:解题思路: 双指针法注意事项: 注意我在字符串末尾加了个‘A’,可以减少判断逻辑参考代码:#include<iostream> #include<algorithm> using na…… 题解列表 2023年02月22日 0 点赞 0 评论 237 浏览 评分:0.0
666666666666666666 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int n;double x,xn=1,sum=1;int main(){ scan…… 题解列表 2023年02月22日 0 点赞 0 评论 445 浏览 评分:7.3