与2无关的数 摘要:解题思路:注意事项:n的取值范围为1000以内参考代码:#include<iostream>using namespace std;int main(){ int n,sum=0; cin…… 题解列表 2023年05月11日 0 点赞 0 评论 588 浏览 评分:0.0
1262: 邮局选址问题(模拟退火) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; struct poit { int x; int y; }p[1…… 题解列表 2023年05月11日 0 点赞 0 评论 849 浏览 评分:0.0
计算奇数个数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ string s; int t,cnt=0; …… 题解列表 2023年05月11日 0 点赞 0 评论 609 浏览 评分:0.0
日期换算。。 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; cin>>a>>b; switch…… 题解列表 2023年05月11日 0 点赞 0 评论 491 浏览 评分:0.0
判断回文数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ string s,t=""; cin>>s; …… 题解列表 2023年05月11日 1 点赞 0 评论 568 浏览 评分:0.0
边长的判断 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b,c; cin>>a>>b>>c; i…… 题解列表 2023年05月11日 0 点赞 0 评论 555 浏览 评分:0.0
递归解法,简单好用 摘要:解题思路:10转8的本质是:10进制数对8不断做整除取余//储存余数,直到10进制数小于8,取得最后余数并逆序输出//每次计算的余数,得到完整的8进制数。注意事项:参考代码:#include<stdi…… 题解列表 2023年05月11日 0 点赞 0 评论 540 浏览 评分:0.0
算法提高VIP-复数求和 解题思路:分析题目要求:输入几行,将输入的数字存入一个列表中,方便下面的使用for循环把列表中的数字相加,最后格式化输出。注意事项:要会用循环参考代码:n=int(input())l=[]whilen>0:a,b=map(int,input().split())l.append((a, 题解列表 2023年05月11日 0 点赞 0 评论 474 浏览 评分:0.0
思路就是要连着一样所以要一直迭代 解题思路:注意事项:参考了c的写法用了好久参考代码:l=list(input().split())l1=l[0]+l[0]l2=l[1]+l[1]#之前都不会这个,原来可以这样搞la=len(l[0])lb=len(l[1])ans=0mn=min(la, 题解列表 2023年05月11日 0 点赞 0 评论 617 浏览 评分:0.0
1305: 老管家的忠诚(ST表) 摘要:解题思路:ST表预处理时间为o(nlogn),查询时间为o(1),适用于区间最值查询,但不支持在线修改注意事项:参考代码:#include<bits/stdc++.h> using namespac…… 题解列表 2023年05月11日 0 点赞 0 评论 768 浏览 评分:0.0