题解列表

筛选

记忆化搜索

摘要:#include<bits/stdc++.h> using namespace std; const int N=310; int dx[] = {-1, 0, 1, 0}; int dy[]……

自定义函数处理最大公约数与最小公倍数

摘要:解题思路:题目要求要建函数,所以得知道怎么去建立函数,再考虑如何去求解,对于小白来说,解题的思路就是建立函数——建立主函数——调用函数注意事项:参考代码:#include<stdio.h>int gb……

Python 模拟解决[100分]

摘要:解题思路:模拟法注意事项:参考代码: n = int(input()) nums = list(map(int,input().split())) res = 0 def add_(n……

无聊的星期六

摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ float x=0; scanf("%f",&x); printf("%.2f",(x < ……

无聊的星期六

摘要:解题思路:注意事项:参考代码:slen=int(input()) print(sum(int(input()) for i in range(slen))//slen)……

[编程入门]温度转换

摘要:解题思路:使用公式进行转换注意事项:注意scanf("%lf",&f);或者scanf("%f",&f);如果你前面定义的f是用double类型的话,就应该用%lf格式,如果f是float类型的话,就……