题解列表

筛选

简单的 a + b

摘要: #include using namespace std; int main() { int a, b; while (cin >……

纯数学题,没意思

摘要:解题思路:注意事项:参考代码:a, b = map(int, input().split())c = abs(b - a)print(c - (a % c))……
优质题解

【C语言】最多的水:本质上是算最大面积 - DotcppXF

摘要:【解题思路】        ① 其实题目很简单,但是题目描述写的不太严谨,一开始很迷惑,怎么直线能成为容器了?水量的单位是啥?        ② 后来大概明白要干啥后,不如重新表述一下题目:给定n个非……

题解 1267: A+B Problem

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){    int x,y;    cin>>x>>y;    int a=……

求和训练(递归)

摘要:解题思路:  递归注意事项: 在求倒数时,将1/c写为1.0/c或者1/(float) c参考代码:#include <stdio.h> // 求1~a的和 int sum_add(int a……