摘要: https://vjudge.net/problem/UVA-1230 费马小定理优化快速幂 阅读全文
posted @ 2019-08-01 22:47 WeiAR 阅读(121) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2019-08-01 17:25 WeiAR 阅读(138) 评论(0) 推荐(0)
摘要: 打暴力找规律,都是连续自然数去掉一个 阅读全文
posted @ 2019-08-01 16:52 WeiAR 阅读(287) 评论(0) 推荐(0)
摘要: n=int(input()) ans=0 for i in range(1,n+1): t=1 for j in range(1,i+1): t*=j; ans+=t; print(ans) 阅读全文
posted @ 2019-08-01 11:40 WeiAR 阅读(162) 评论(0) 推荐(0)
摘要: https://www.luogu.org/problem/P1080 阅读全文
posted @ 2019-08-01 11:25 WeiAR 阅读(618) 评论(0) 推荐(0)