调用函数及封装性解题 摘要:解题思路:def f(a): b=(a%10)*5 a=a//10 if (a-b)%17==0: print("1") else:print("0")while…… 题解列表 2024年11月27日 0 点赞 0 评论 346 浏览 评分:9.9
萌新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 评论 262 浏览 评分: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 评论 219 浏览 评分:0.0
萌新C语言:for循环 摘要:解题思路:在可能区间内递增/递减,直到出现第一个符合要求的数。注意事项:参考代码:#include<stdio.h>int main(){ int m,n,min,max,a,b;//m,n为输入值,…… 题解列表 2024年11月27日 2 点赞 0 评论 630 浏览 评分:0.0
最普通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,max=0,min=10000; scanf("%d",&a); while(…… 题解列表 2024年11月27日 0 点赞 0 评论 128 浏览 评分: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 评论 128 浏览 评分: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 评论 958 浏览 评分:0.0
好理解的答案,直接写就是了 摘要:解题思路:无所畏惧,直接上注意事项:0 到 9 的ASCII码是48到57a 到 z 的ASCII码是97到122A 到 Z 的ASCII码是65到90参考代码:#include<stdio.h>#i…… 题解列表 2024年11月26日 0 点赞 0 评论 247 浏览 评分:0.0
好理解的答案 摘要:解题思路: 无所畏惧,直接上,系统会自动转化成ascii码相加的,我们不用管这么多注意事项:亲朋字符串的最后一个字符由给定字符串s的最后一个字符ASCII值加s的第一个字符的ASCII值参考代码:#i…… 题解列表 2024年11月26日 0 点赞 0 评论 479 浏览 评分:0.0
运用封装的方法和调用函数借以解答汽水瓶问题 摘要:解题思路:def f(water): num=0 while True: if water==2: num+=1 break …… 题解列表 2024年11月26日 0 点赞 0 评论 218 浏览 评分:9.9