2818: 分离整数的各个数位 摘要:解题思路:注意事项:参考代码:a = input() for i in a[::-1]: print(i,end=' ')代码2:a = input() a = a[::…… 题解列表 2023年02月22日 0 点赞 0 评论 579 浏览 评分:9.0
c++----map的统计功能 摘要: #include using namespace std; int main() { int n; cin>>n; int a…… 题解列表 2023年02月22日 0 点赞 0 评论 520 浏览 评分: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 评论 459 浏览 评分: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 评论 489 浏览 评分:0.0
两种方法,简单易懂!!!! 摘要:解题思路:注意事项:数组可以不开那么大。参考代码:#include<bits/stdc++.h>using namespace std;//int a,b,c;int n,a[101][101],s,…… 题解列表 2023年02月22日 0 点赞 0 评论 487 浏览 评分:9.9
求和很简单,只要掌握方法就可以 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,m,s=0;//s要赋初值!!! cin>>n>…… 题解列表 2023年02月22日 0 点赞 0 评论 573 浏览 评分:9.9
蓝桥杯2018年第九届真题-次数差-C++ 摘要:解题思路: 双指针法注意事项: 注意我在字符串末尾加了个‘A’,可以减少判断逻辑参考代码:#include<iostream> #include<algorithm> using na…… 题解列表 2023年02月22日 0 点赞 0 评论 314 浏览 评分: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 评论 495 浏览 评分:7.3
1045: [编程入门]自定义函数之整数处理 摘要:```cpp #include using namespace std; /* 题目描述 输入10个整数,将其中最小的数与第一个数对换,把最大的数与最后一个数对换。 写三个函数; ①输入…… 题解列表 2023年02月22日 0 点赞 1 评论 312 浏览 评分:9.9
@更向天涯 小李子不行啊!!! 摘要:解题思路:注意事项:cin、cout一定要改成scanf和printf不然会超时!!!!参考代码:#include<bits/stdc++.h>using namespace std;int a[10…… 题解列表 2023年02月22日 0 点赞 6 评论 342 浏览 评分:9.9