题解列表
二级C语言-自定义函数
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ double x,y; scanf("%lf",&x); if(x<1) { y=x; } else if(x……
Tom数(我来用Java写)
摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main{ public static void main(String[] args)……
2285: 蓝桥杯2018年第九届真题-螺旋折线
摘要:解题思路:注意事项:参考代码:x,y=map(int,input().split())
l=max(abs(x),abs(y))
if x == 0 and y==0:
print(0)……
1093: 字符逆序
```cpp#includeusingnamespacestd;intmain(){charstr[100];gets(str);//用gets输入的字符串可以按回车结束intk=strlen(str);for(intw=k-1;w>=0;w--){cout
二级C语言-自定义函数
摘要:解题思路:注意事项:注意一次输入俩个数据还是一次输入一个数据,输入俩次参考代码:d=input()a=d.split(' ')if len(a)==1: x=(input()) ……
2610: 蓝桥杯2021年第十二届省赛真题-杨辉三角形(Python)
```pythondefC(a,b):res=1foriinrange(1,b+1):res=res*a/ia-=1ifres>n:returnresreturnresdefcheck(k):l=2*kr=max(n,l)whilel=n:r=midelse:l=mid+1ifC(r,
小球下落,C语言,通俗易懂
摘要:解题思路:模拟小球下落的过程,下落弹回为一个过程,反复多次过程即可。注意事项:最后多算了一个,须要减掉参考代码:#include<stdio.h>#include<string.h>int main(……