1427: 蓝桥杯2013年第四届真题-买不到的数目 摘要:# 1427: 蓝桥杯2013年第四届真题-买不到的数目 ## 公式证明 这里使用到两个数学知识: * 若 a, b 互质,则 a,b 最大不能组成的数组为ab - a - b。 * 现在又两…… 题解列表 2024年02月07日 0 点赞 0 评论 596 浏览 评分:0.0
弟弟的作业 摘要:解题思路:使用cin逐个拿到用户输入的数据再进行计算即可注意事项:需要掌握string与int互相转换的方法string->int:1、通过 istringstream 转换#include <ios…… 题解列表 2024年02月06日 0 点赞 0 评论 300 浏览 评分:0.0
c++辗转相除法 摘要:解题思路:注意事项:参考代码:#include <iostream> using namespace std; int zhx(int a, int b) { return (a % b == 0…… 题解列表 2024年02月06日 0 点赞 0 评论 260 浏览 评分:9.9
题解 1124: C语言训练-大、小写问题 摘要:###思路 ~~没有~~ #注意事项 ##需要注意空格!!! ###代码 ```cpp #include using namespace std; char a[10005]; in…… 题解列表 2024年02月06日 0 点赞 0 评论 356 浏览 评分:9.9
题解 1031: [编程入门]自定义函数之字符串反转 摘要:###思路 逆序输出即可 ###注意事项 要写`for(int i=l-1;i>=0;i--)` 1.逆序 2.***l-1*** ###代码 ```cpp #include usi…… 题解列表 2024年02月06日 0 点赞 0 评论 478 浏览 评分:9.9
题解 1000: [竞赛入门]简单的a+b 摘要:###思路 `while(cin>>)`即可 ###代码 ```cpp #include using namespace std; int main() { int a,b; …… 题解列表 2024年02月06日 2 点赞 0 评论 401 浏览 评分:9.9
1022: [编程入门]筛选N以内的素数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n; cin>>n; for(i…… 题解列表 2024年02月06日 1 点赞 0 评论 308 浏览 评分:0.0
2814: 正常血压 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n,a,b,sum=0,maxx=0;//定…… 题解列表 2024年02月06日 0 点赞 0 评论 318 浏览 评分:9.9
用字符串简单解决 摘要:解题思路:注意事项:注意计算时要把字符串转换为整型才可以计算!参考代码:#include <iostream>using namespace std;int main(){ string m; …… 题解列表 2024年02月06日 0 点赞 0 评论 291 浏览 评分:9.9
c++(格式工整清晰,容易理解) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; void solve(int a,int b) { int sum_a=0,…… 题解列表 2024年02月06日 0 点赞 0 评论 279 浏览 评分:9.9