题解列表

筛选

1277: Lucky Word(基础)

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstring>#include<cmath>#include<iomanip>using namespace st……

简单易懂c++

`#includeusingnamespacestd;boolprime_number(inta){//判断素数函数if(a==2)returntrue;for(inti=2;i>n;intcount=0;for(inti=2;i

编写题解 2773: 计算线段长度,python超简单

解题思路:详见下列代码注意事项:如果不考虑两种情况,那么会出现运行错误,感觉题目有歧义,没有明确指出。。参考代码:frommathimportsqrt#读取输入并转换为浮点数列表number=list(map(float,input().split()))#根据输入的数量处理不同的情况iflen(nu

题目 1275: 吹哨传球(习惯吧)

摘要:解题思路:题目是求第m轮后到第0位的可能次数,即F[m][0];先求第m-1轮,到第1位和第2位的可能次数;往后找,第m-2轮,到第0位,2位|| 第0位,1位的次数以m=3,n=3为例。F[0][0……

python用for解决

摘要:解题思路:注意事项:参考代码:str=input()a,b,c,d=0,0,0,0for i in str:    if (i>=&#39;A&#39; and i<=&#39;Z&#39;) or ……