题解列表
题解 1267: A+B Problem
摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int a,b; cin>>a>>b; cout<……
整数删除-能看懂系列
摘要:解题思路:第一份代码为通过的代码,借鉴于其处的方法,这边有些大佬的代码可能不太好理解,所以写了这个比较详细的,希望对各位有用;另外这个题我自己也有方法,容易理解但较为繁琐也可惜有4个输出超限,有兴趣的……
2791: 计算邮资(判断和输出一行解决)
摘要:解题思路:分两部分输出,一部分判断重量,先判断有没有超过一公斤,超过一公斤在判断超过多少,正好为500整数倍则输出,如果不是500整数倍则向上取整(加1)第二部分判断加急,然后增加相应费用参考代码:#……
蓝桥杯历届试题-回文数字
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>
using namespace std;
int n;
int dight[6];
bool judge(int ……
2788: 晶晶赴约会
摘要://参考代码:
#include<iostream>
using namespace std;
int main()
{
int a;
cin >> a;
cout << (a =……
多用数学思想考虑考虑,EZ,收徒
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int max,min,e; int a,b; ……
2787: 有一门课不及格的学生
摘要:参考代码:#include<iostream>
using namespace std;
int main()
{
int a, b;
cin >> a >> b;
……
三国游戏 - 暴力搜索
摘要:```c++
#include
using namespace std;
typedef long long LL;
const int N = 1e5+10;
int x[N], y[……
题解 2785: 判断一个数能否同时被3和5整除
摘要:参考代码:#include<iostream>
using namespace std;
int main()
{
int a;
cin >> a;
cout <<……