- 博客(2)
- 收藏
- 关注
原创 python的循环结构
一个简单的程序,计算1!+2!+3!+…+n!n=int(input())i=1sum1=0while i <= n:j=1sum=1while(j<=i):sum=j*sumj=j+1sum1=sum+sum1i=i+1print(sum1)
2020-12-05 16:21:22 87
原创 POJ 2524题解 Ubiquitous Religions(并查集)
这道题是并查集简单题,题目如下:DescriptionThere are so many different religions in the world today that it is difficult to keep track of them all. You are interested in finding out how many different religions students in your university believe in. You know that the
2020-07-02 15:59:03 287
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人