题解列表

筛选

最大公约数与最小公倍数(简化)

摘要:解题思路:辗转相除法求得最大公约数,再求得最小公倍数。注意事项:参考代码:#include <stdio.h>int main(){ int a,b; int t;  scanf("%d %d", &……

题解 2021: 坐标排序

摘要:解题思路:注意事项:参考代码:#include<stdio.h> void swap(int a[], int b[])    //交换 {     int i,k=0;     for(……

python-日期问题

摘要:```python date=input().split("/") numlist=[] year=date[0] month=date[1] day=date[2] def func……

超级简单版【c++】

摘要:````cpp #include using namespace std; int months[] = {0, 31, 28, 31, 30, 31, 30, 31, 31, 30, ……

编写题解 1204: 大小写转换

摘要:解题思路:注意事项:参考代码:#include<iostream>#include <iomanip>#include<ctype.h>using namespace std;int main(){ ……

题解 1065: 二级C语言-最小绝对值

摘要:解题思路:函数 min 获得最小值列表方法 index 获得下标两位置值交换即可注意事项:务必注意,是在原始输入的10个数中调换位置错了4遍才看出来参考代码:arr = list(map(int,in……