题解列表

筛选

C++ 运行易错点

摘要:解题思路:      一元二次方程                   ax²+bx+c=0   (a≠0)        &n

建议改为:测测你的快读(雾)

vector存法:```cpp#includeusingnamespacestd;namespaceio{constexprintIN_BUF=1>(int&x){staticintch;//isdigit传入参数为int,为避免强制转换gc的返回值、ch均为int。

蓝桥杯2020年第十一届省赛真题-回文日期( 回文生成法)

思路:1:按年份枚举就可以,不用一天一天枚举(因为是按照前四个数字回文的)。2:构造出回文判断是否满足年月日的形式,得到result1和result2易错点:1:构造出回文以后需要先判断是否满足年月日的形式!!!```cpp#include#includeusingnamespacestd;intn;

编写题解 1171: 蟠桃记

摘要:解题思路:注意事项:参考代码:while True:     try:         n=int(input())         ls=[1]         for i in&nb

1172: 计算两点间的距离

摘要:解题思路:直角三角形,三条边的关系:两直边平方和等于斜边平方注意事项:参考代码:while True:     try:         x1,y1,x2,y2=map(int,input().s……

解决栅格问题

摘要:解题思路:注意事项:注意高度或者宽度为零的时候参考代码:#include <stdio.h>#include <iostream>using namespace std;int main(){ int……

编写题解 1173: 计算球体积

摘要:解题思路:注意事项:参考代码:while True:     try:         r=float(input())         print(&#39;%.3f&#39;%((4/3)*……