3051: 登山 有点难这还是入门题吗? 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){ // 定义变量n表示数组长度,a、b、c为…… 题解列表 2024年11月26日 0 点赞 0 评论 133 浏览 评分:0.0
好理解的答案 摘要:解题思路: 无所畏惧,直接上,系统会自动转化成ascii码相加的,我们不用管这么多注意事项:亲朋字符串的最后一个字符由给定字符串s的最后一个字符ASCII值加s的第一个字符的ASCII值参考代码:#i…… 题解列表 2024年11月26日 0 点赞 0 评论 451 浏览 评分:0.0
好理解的答案,直接写就是了 摘要:解题思路:无所畏惧,直接上注意事项:0 到 9 的ASCII码是48到57a 到 z 的ASCII码是97到122A 到 Z 的ASCII码是65到90参考代码:#include<stdio.h>#i…… 题解列表 2024年11月26日 0 点赞 0 评论 216 浏览 评分:0.0
蓝桥杯2024年第十五届省赛真题-好数 暴力 摘要:解题思路:注意事项:参考代码:#include"iostream"using namespace std;int main(){ int n; int s=0; int x=1; cin>>n; fo…… 题解列表 2024年11月27日 1 点赞 0 评论 940 浏览 评分:0.0
超级复杂的方法,不建议参考. 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,n,a=0,b=0,c=0,d=0,e=0,j=0; scanf("%d",&n); …… 题解列表 2024年11月27日 0 点赞 0 评论 123 浏览 评分:0.0
最普通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,max=0,min=10000; scanf("%d",&a); while(…… 题解列表 2024年11月27日 0 点赞 0 评论 120 浏览 评分:0.0
萌新C语言:for循环 摘要:解题思路:在可能区间内递增/递减,直到出现第一个符合要求的数。注意事项:参考代码:#include<stdio.h>int main(){ int m,n,min,max,a,b;//m,n为输入值,…… 题解列表 2024年11月27日 2 点赞 0 评论 599 浏览 评分:0.0
萌新C语言:咋还是for 摘要:#include<stdio.h>int main(){ int m,n; double h=0.0,s=0.0; scanf("%d %d",&m,&n); h=m; for(int i=1;i<=…… 题解列表 2024年11月27日 1 点赞 0 评论 204 浏览 评分:0.0
萌新C语言:for 摘要:#include<stdio.h>int main(){ int m=1,n; scanf("%d",&n); for(int i=1;i<n;i++){ m=(m+1)*2; } pr…… 题解列表 2024年11月27日 0 点赞 0 评论 249 浏览 评分:0.0
车厢调度(train) 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 定义一个栈,用于存储整数 stack<int> s; int ma…… 题解列表 2024年11月27日 0 点赞 0 评论 192 浏览 评分:0.0