三国游戏-简单易看懂 摘要:解题思路:将胜国每个事件发生时相对于其他两国的兵力增量记录并排序,只要他的事件增量大于0,那么这个事件就可以发生,最后从三个国家获胜情况中找到最大的事件数即可注意事项:参考代码:#include<bi…… 题解列表 2024年03月03日 2 点赞 0 评论 1219 浏览 评分:9.3
绝对值排序 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;bool cmp(int a,int b){ return abs(a)>ab…… 题解列表 2024年03月03日 0 点赞 0 评论 467 浏览 评分:0.0
飞机降落-详细注释易看懂(暴力枚举) 摘要:解题思路:n限制小,选择暴力枚举,找到降落顺序,详细注释注意事项:参考代码:#include using namespace std; const int N = 10+20; struct pl…… 题解列表 2024年03月03日 0 点赞 2 评论 1450 浏览 评分:8.5
石头剪刀布 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,na,nb; cin >> n >> na >>…… 题解列表 2024年03月03日 0 点赞 0 评论 530 浏览 评分:6.0
题解 1267: A+B Problem 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int a,b; cin>>a>>b; cout<…… 题解列表 2024年03月02日 0 点赞 0 评论 736 浏览 评分:0.0
整数删除-能看懂系列 解题思路:第一份代码为通过的代码,借鉴于其处的方法,这边有些大佬的代码可能不太好理解,所以写了这个比较详细的,希望对各位有用;另外这个题我自己也有方法,容易理解但较为繁琐也可惜有4个输出超限,有兴趣的可以试试优化第二份注意事项:参考代码:#include#include 题解列表 2024年03月02日 3 点赞 1 评论 1705 浏览 评分:10.0 2791: 计算邮资(判断和输出一行解决) 解题思路:分两部分输出,一部分判断重量,先判断有没有超过一公斤,超过一公斤在判断超过多少,正好为500整数倍则输出,如果不是500整数倍则向上取整(加1)第二部分判断加急,然后增加相应费用参考代码:#includeusingnamespacestd;intmain(){inta;c 题解列表 2024年03月02日 0 点赞 0 评论 460 浏览 评分:0.0 蓝桥杯历届试题-回文数字 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int n; int dight[6]; bool judge(int …… 题解列表 2024年03月02日 0 点赞 0 评论 465 浏览 评分:0.0 2788: 晶晶赴约会 摘要://参考代码: #include<iostream> using namespace std; int main() { int a; cin >> a; cout << (a =…… 题解列表 2024年03月02日 0 点赞 0 评论 563 浏览 评分:9.9 多用数学思想考虑考虑,EZ,收徒 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int max,min,e; int a,b; …… 题解列表 2024年03月01日 1 点赞 0 评论 564 浏览 评分:0.0 « 12...259260261262263264265...16501651 »
2791: 计算邮资(判断和输出一行解决) 解题思路:分两部分输出,一部分判断重量,先判断有没有超过一公斤,超过一公斤在判断超过多少,正好为500整数倍则输出,如果不是500整数倍则向上取整(加1)第二部分判断加急,然后增加相应费用参考代码:#includeusingnamespacestd;intmain(){inta;c 题解列表 2024年03月02日 0 点赞 0 评论 460 浏览 评分:0.0
蓝桥杯历届试题-回文数字 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int n; int dight[6]; bool judge(int …… 题解列表 2024年03月02日 0 点赞 0 评论 465 浏览 评分:0.0
2788: 晶晶赴约会 摘要://参考代码: #include<iostream> using namespace std; int main() { int a; cin >> a; cout << (a =…… 题解列表 2024年03月02日 0 点赞 0 评论 563 浏览 评分:9.9
多用数学思想考虑考虑,EZ,收徒 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int max,min,e; int a,b; …… 题解列表 2024年03月01日 1 点赞 0 评论 564 浏览 评分:0.0