1305: 老管家的忠诚(ST表) 摘要:解题思路:ST表预处理时间为o(nlogn),查询时间为o(1),适用于区间最值查询,但不支持在线修改注意事项:参考代码:#include<bits/stdc++.h> using namespac…… 题解列表 2023年05月11日 0 点赞 0 评论 480 浏览 评分:0.0
边长的判断 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b,c; cin>>a>>b>>c; i…… 题解列表 2023年05月11日 0 点赞 0 评论 373 浏览 评分:0.0
判断回文数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ string s,t=""; cin>>s; …… 题解列表 2023年05月11日 1 点赞 0 评论 398 浏览 评分:0.0
日期换算。。 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; cin>>a>>b; switch…… 题解列表 2023年05月11日 0 点赞 0 评论 323 浏览 评分:0.0
计算奇数个数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ string s; int t,cnt=0; …… 题解列表 2023年05月11日 0 点赞 0 评论 408 浏览 评分:0.0
1262: 邮局选址问题(模拟退火) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; struct poit { int x; int y; }p[1…… 题解列表 2023年05月11日 0 点赞 0 评论 571 浏览 评分:0.0
与2无关的数 摘要:解题思路:注意事项:n的取值范围为1000以内参考代码:#include<iostream>using namespace std;int main(){ int n,sum=0; cin…… 题解列表 2023年05月11日 0 点赞 0 评论 389 浏览 评分:0.0
搜索dfs+暴力 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int len;string ans = "";int jaa(int x, in…… 题解列表 2023年05月11日 0 点赞 0 评论 483 浏览 评分:0.0
贷款计算。。。 摘要:解题思路:注意事项:注意单位的换算,本金以万元为单位,但输出是以元为单位。还有是计算第一个月的还款金额,已归还的金额数为零参考代码:#include<iostream>using namespace …… 题解列表 2023年05月10日 0 点赞 0 评论 445 浏览 评分:0.0
求平均工资 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n,sum=0,money; cin>>n; …… 题解列表 2023年05月10日 0 点赞 0 评论 392 浏览 评分:0.0