该文被密码保护。 阅读全文
posted @ 2019-10-15 12:41 Unknown_Island 阅读(3) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include #include using namespace std; const double eps = 1e-8; const double pi = acos(-1.0); int sgn(double x){ if(fabs(x) 0) swap(a,c); double anga ... 阅读全文
posted @ 2019-10-14 22:34 Unknown_Island 阅读(97) 评论(0) 推荐(0) 编辑
摘要: Hopscotch time limit per test 2 seconds time limit per test memory limit per test 256 megabytes memory limit per test input standard input input outpu 阅读全文
posted @ 2019-10-13 15:52 Unknown_Island 阅读(139) 评论(0) 推荐(0) 编辑
摘要: Point on Spiral time limit per test 2 seconds time limit per test memory limit per test 256 megabytes memory limit per test input standard input input 阅读全文
posted @ 2019-10-13 14:49 Unknown_Island 阅读(189) 评论(0) 推荐(0) 编辑
摘要: Arpa and an exam about geometry time limit per test 2 seconds time limit per test memory limit per test 256 megabytes memory limit per test input stan 阅读全文
posted @ 2019-10-13 14:30 Unknown_Island 阅读(138) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std; struct node{ int y,m,d; node operator++(int ){ //后缀加加 ++i node nd = *this;//保存副本 pluss(); return nd; } node& operator++()... 阅读全文
posted @ 2019-10-07 19:38 Unknown_Island 阅读(159) 评论(0) 推荐(0) 编辑
摘要: Consider two natural numbers A and B. Let S be the sum of all natural divisors of A^B. Determine S modulo 9901 (the rest of the division of S by 9901) 阅读全文
posted @ 2019-09-22 13:27 Unknown_Island 阅读(160) 评论(0) 推荐(0) 编辑
摘要: int dp[maxn][maxn]; signed main() { /*n个盘 m座塔*/ int n,m; n=31,m=31; /*初始化动规边界*/ dp[2][1]=1;//初始化两座塔的情况 for(int i=3; i3 */ for(int i=4; i<=m; ++i){ for(int j=... 阅读全文
posted @ 2019-09-22 11:32 Unknown_Island 阅读(301) 评论(0) 推荐(0) 编辑
摘要: Farmer John knows that an intellectually satisfied cow is a happy cow who will give more milk. He has arranged a brainy activity for cows in which the 阅读全文
posted @ 2019-09-21 23:50 Unknown_Island 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 1. 从1-n这n(n<20)个整数中随机选择任意多个,输出所有可能的选择方案。 2. 把1-n这n(n<10)个整数排成一行后随机打乱顺序,输出所有可能的次序。(全排列) 3.把1-n这n(n<10)个整数排成一行后随机打乱顺序,输出所有可能的次序。(递归) 阅读全文
posted @ 2019-09-21 04:19 Unknown_Island 阅读(108) 评论(0) 推荐(0) 编辑