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