随笔分类 -  数学

摘要:Not long ago Billy came across such a problem, where there were given three natural numbers A, B and C from the range [1, N], and it was asked to chec 阅读全文
posted @ 2018-01-31 22:00 euzmin 阅读(272) 评论(0) 推荐(0)
摘要:LazyChild is a lazy child who likes candy very much. Despite being very young, he has two large candy boxes, each contains n candies initially. Everyd 阅读全文
posted @ 2018-01-28 11:59 euzmin 阅读(199) 评论(0) 推荐(0)
摘要:1 /* 2 求多边形与圆相交的面积 3 */ 4 5 #include <iostream> 6 #include <cstdio> 7 #include <cmath> 8 #define max(x,y) ((x)>(y)?(x):(y)) 9 #define min(x,y) ((x)<(y 阅读全文
posted @ 2018-01-22 15:12 euzmin 阅读(396) 评论(0) 推荐(0)
摘要:C. Line time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output C. Line time limit per test 1 sec 阅读全文
posted @ 2017-11-12 20:13 euzmin 阅读(190) 评论(0) 推荐(0)
摘要:1 int gcd(int a,int b) { 2 return b==0?a:gcd(b,a%b); 3 } 1 void gcd(int a, int b, int &d, int &x, int &y) 2 { 3 if(!b) { d = a; x = 1; y = 0; } 4 else 阅读全文
posted @ 2017-11-09 16:22 euzmin 阅读(129) 评论(0) 推荐(0)
摘要:D. Follow Traffic Rules time limit per test 1 second memory limit per test 64 megabytes input standard input output standard output D. Follow Traffic 阅读全文
posted @ 2017-10-21 13:42 euzmin 阅读(233) 评论(0) 推荐(0)
摘要: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 阅读(163) 评论(0) 推荐(0)
摘要:2357: 插塔憋憋乐 题目描述 众所不知,LLM是一位红警3大佬,打的非常厉害,但是曾经也是一位萌新,喜欢在家里放防御塔,然后攒单位。现在是这样的:LLM有一个半径为R的基地,他想放一些防御塔,让任何一个敌方单位在进入自己基地的开始就受到防御塔的攻击,由于LLM希望敌人会顶着防御塔的攻击伤害自己, 阅读全文
posted @ 2017-09-19 19:30 euzmin 阅读(152) 评论(0) 推荐(0)
摘要:B. Tell Your World time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Connect the countless 阅读全文
posted @ 2017-09-02 10:43 euzmin 阅读(141) 评论(0) 推荐(0)
摘要:证明详细的博客:http://blog.csdn.net/hillgong/article/details/4214327 模板: 1 #include<iostream> 2 #include<algorithm> 3 #include<queue> 4 #include<cstdio> 5 #i 阅读全文
posted @ 2017-08-21 12:26 euzmin 阅读(659) 评论(0) 推荐(0)