摘要: C. Ancient Berland Circus time limit per test 2 seconds memory limit per test 64 megabytes input standard input output standard output C. Ancient Berl 阅读全文
posted @ 2017-10-02 20:59 euzmin 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 外接圆半径 ∴ 由海伦公式得 ∴ 内接圆半径 由海伦公式可知, ∴ 解得 pi的求法 const double pi = acos(-1.0); 内接圆半径 由海伦公式可知, ∴ 解得 pi的求法 const double pi = acos(-1.0); 由海伦公式可知, ∴ 解得 pi的求法 c 阅读全文
posted @ 2017-10-02 19:52 euzmin 阅读(198) 评论(0) 推荐(0) 编辑
摘要: gcd: 整型求法 int gcd(int x,int y) { return b?gcd(b,a%b):a; } 浮点型求法 exgcd(摘自:戳这里): 1 typedef long long LL; 2 3 LL exgcd(LL a,LL b,LL &x,LL &y){ 4 5 if(a== 阅读全文
posted @ 2017-10-02 19:29 euzmin 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 本文转自:http://blog.csdn.net/sjf0115/article/details/8579935 阅读全文
posted @ 2017-10-02 17:41 euzmin 阅读(1455) 评论(0) 推荐(0) 编辑
摘要: B. Spreadsheets time limit per test 10 seconds memory limit per test 64 megabytes input standard input output standard output B. Spreadsheets time lim 阅读全文
posted @ 2017-10-02 17:16 euzmin 阅读(138) 评论(0) 推荐(0) 编辑