上一页 1 ··· 49 50 51 52 53 54 55 56 57 ··· 59 下一页
摘要: 要判断某一段数字能否被3 或者 9 整除,有一个小定理,就是《如果各位数字之和能整除3或者9,就证明这一段数字能被3 或者 9 整除》。题目链接:https://cn.vjudge.net/contest/242367#problem/A代码:#include#inc... 阅读全文
posted @ 2018-08-24 20:11 Let_Life_Stop 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://cn.vjudge.net/contest/68127#problem/B#include#include#include#include#include#includeusing namespace std;# define maxn 20... 阅读全文
posted @ 2018-08-24 10:45 Let_Life_Stop 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://cn.vjudge.net/contest/68127#problem/B#include#include#include#include#include#includeusing namespace std;# define maxn 20... 阅读全文
posted @ 2018-08-24 10:45 Let_Life_Stop 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://cn.vjudge.net/contest/245468#problem/F大意:给你插座和电器的对应关系,有多个电器对应一个插座的情况,但是一个插座只能供一个电器使用,现在有一个转换头,能够将一个插座改成三个插头,问你最多能匹配多少个电器。... 阅读全文
posted @ 2018-08-23 16:31 Let_Life_Stop 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://cn.vjudge.net/contest/245468#problem/F大意:给你插座和电器的对应关系,有多个电器对应一个插座的情况,但是一个插座只能供一个电器使用,现在有一个转换头,能够将一个插座改成三个插头,问你最多能匹配多少个电器。... 阅读全文
posted @ 2018-08-23 16:31 Let_Life_Stop 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 求 (a/b)%m 正常做可能会爆精度。然后可以求出b的逆元,将除法转换为乘法进行计算。b的逆元等于 b的(m-2)次方。代码:#includeusing namespace std;const int mod=9973;long long quickpow(long... 阅读全文
posted @ 2018-08-22 09:11 Let_Life_Stop 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 求 (a/b)%m 正常做可能会爆精度。然后可以求出b的逆元,将除法转换为乘法进行计算。b的逆元等于 b的(m-2)次方。代码:#includeusing namespace std;const int mod=9973;long long quickpow(long... 阅读全文
posted @ 2018-08-22 09:11 Let_Life_Stop 阅读(210) 评论(0) 推荐(0) 编辑
摘要: http://codeforces.com/gym/101840/attachments题目大意:输入n,r,k 。n代表往外扩张几次,r代表圆的内接圆半径,k代表多边形的边长。问你每次扩张多边形和内接圆的面积之和。公式: 多边形的面积公式 0.5*sin(2*3.... 阅读全文
posted @ 2018-08-21 20:38 Let_Life_Stop 阅读(342) 评论(0) 推荐(0) 编辑
摘要: http://codeforces.com/gym/101840/attachments题目大意:输入n,r,k 。n代表往外扩张几次,r代表圆的内接圆半径,k代表多边形的边长。问你每次扩张多边形和内接圆的面积之和。公式: 多边形的面积公式 0.5*sin(2*3.... 阅读全文
posted @ 2018-08-21 20:38 Let_Life_Stop 阅读(374) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include using namespace std;const int N=1e5+5,M=1e5+5,INF=1e9+5;int n=0,m,u,v;struct edge{ int v,ne;} e... 阅读全文
posted @ 2018-08-20 21:31 Let_Life_Stop 阅读(222) 评论(0) 推荐(0) 编辑
上一页 1 ··· 49 50 51 52 53 54 55 56 57 ··· 59 下一页