题解列表

筛选

1172: 计算两点间的距离

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

编写题解 1171: 蟠桃记

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

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

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

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

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

C++ 运行易错点

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

动态规划解决清楚易懂

解题思路:注意事项:参考代码:importjava.util.Scanner;publicclassdp解决01背包问题{publicstaticvoidmain(String[]args){//TODOAuto-generatedmethodstubScannersc=newScanner(Syst