题解列表
自定义函数之数字后移
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int a[111],b[111];int main(){ int n,m; scanf("%d",&n); ……
2790: 分段函数 更简洁版本
摘要:解题思路:注意事项:参考代码:a=float(input())y=0if 0<=a<5: y=-a+2.5elif 5<=a<10: y=2-1.5*(a-3)*(a-3)elif 10<……
[编程入门]宏定义之闰年判断 def模块版
摘要:解题思路:注意事项:参考代码:def LEAP_YEAR(y): if y%400==0 or (y%4==0 and y%100!=0) : print('L')……
[编程入门]矩阵对角线求和 (C语言)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[3][3],i,j,s,w; s=0; w=0; for(i=0;i<3;i……
[编程入门]自定义函数处理素数 (C语言)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int s,j,i; scanf("%d",&s); j=s; if(s==2) pri……
蓝桥杯算法训练VIP-整数平均值
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,sum; int a[n]; int i; scanf("%d",&……