题解列表
萌新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<=……
萌新C语言:for循环
摘要:解题思路:在可能区间内递增/递减,直到出现第一个符合要求的数。注意事项:参考代码:#include<stdio.h>int main(){ int m,n,min,max,a,b;//m,n为输入值,……
超级复杂的方法,不建议参考.
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,n,a=0,b=0,c=0,d=0,e=0,j=0; scanf("%d",&n); ……
蓝桥杯2024年第十五届省赛真题-好数 暴力
摘要:解题思路:注意事项:参考代码:#include"iostream"using namespace std;int main(){ int n; int s=0; int x=1; cin>>n; fo……
好理解的答案,直接写就是了
摘要:解题思路:无所畏惧,直接上注意事项:0 到 9 的ASCII码是48到57a 到 z 的ASCII码是97到122A 到 Z 的ASCII码是65到90参考代码:#include<stdio.h>#i……
运用封装的方法和调用函数借以解答汽水瓶问题
摘要:解题思路:def f(water): num=0 while True: if water==2: num+=1 break ……
任意年月日输出 C语言
摘要:解题思路:注意事项:参考代码:#include <stdio.h>int a[13]={0,31,28,31,30,31,30,31,31,30,31,30,31};int main(){ in……