题解列表
T1027-自定义函数处理最大公约数与最小公倍数--三行解决(两种方法)
摘要:解题思路:注意事项:参考代码:#第一种方法defgcd(a,b):whileb!=0……
T1028-自定义函数求一元二次方程--步骤清晰
摘要:解题思路:注意事项:参考代码:importmatha,b,c=map(float,input().split())d&n……
1041: [编程入门]宏定义之找最大数
摘要:解题思路:注意事项:参考代码:#include <stdio.h>#define MAX(a, b, c)\{\ printf("%.3lf"……
[编程入门]电报加密
摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){ char str[30……
整数序列的元素最大跨度值 ———— STL解法
摘要:解题思路:使用具有C++特色的vector<>容器来代替数组使用,同时使用迭代器,调用STL……
慢慢看,慢慢理解,你也能做到,
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int a=0,n=0;int answer=0;int main(){ ……
一个for循环解决问题
摘要:解题思路:注意事项:参考代码:#include<math.h>#include<stdio.h>int main(){ int i,n,temp; d……