Live2d Test Env
摘要: Order Count Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 954 Accepted Submission(s): 371 Probl 阅读全文
posted @ 2017-09-27 21:06 nimphy 阅读(1111) 评论(2) 推荐(0) 编辑
摘要: 大数MOD 阅读全文
posted @ 2017-09-27 21:06 nimphy 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 吃糖果 Time Limit: 6000/3000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others) Total Submission(s): 41705 Accepted Submission(s): 12022 Problem 阅读全文
posted @ 2017-09-27 21:06 nimphy 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 这些题都可以用动规或者背包做 HDU1028 HDU1398 HDU2079 HDU2082 阅读全文
posted @ 2017-09-27 21:06 nimphy 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 62的判断就是倒过来没有26 阅读全文
posted @ 2017-09-27 21:06 nimphy 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 第一次看到这题果断放弃,毕竟几何白痴,第二次刷没做的题的时候突然想到这个三角形面积的向量法:S=|x1*y2-x2*y1| 但是此题可能是凹多边形,所以不能加绝对值,可以画个凹四边形看看。 阅读全文
posted @ 2017-09-27 21:06 nimphy 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 做多了年月日,现在基本就能水过了 18岁生日 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 33799 Accepted Submission 阅读全文
posted @ 2017-09-27 21:06 nimphy 阅读(289) 评论(0) 推荐(0) 编辑
摘要: 基础: 1102 难度1 1213 难度1 1232 难度1 1233 难度1 稍加思想: 1198 打表很恶心,难度 1.5 1269 (有向图是否联通) Tarjan 难度1.5 并查集 难度2 1272 (无向图是否是棵树) 难度2 1325 (有向图是否是棵树)转化思想 难度2 1598 排 阅读全文
posted @ 2017-09-27 21:06 nimphy 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 整数划分问题 整数划分是一个经典的问题。 Input 每组输入是两个整数n和k。(1 <= n <= 50, 1 <= k <= n) Output 对于每组输入,请输出六行。 第一行: 将n划分成若干正整数之和的划分数。 第二行: 将n划分成k个正整数之和的划分数。 第三行: 将n划分成最大数不超 阅读全文
posted @ 2017-09-27 21:06 nimphy 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 前边和后边性别不同!!!不然NP了 Girls and Boys Problem Description the second year of the university somebody started a study on the romantic relations between the 阅读全文
posted @ 2017-09-27 21:06 nimphy 阅读(125) 评论(0) 推荐(0) 编辑
摘要: Holding Bin-Laden Captive! Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 23275 Accepted Submis 阅读全文
posted @ 2017-09-27 21:06 nimphy 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 敌兵布阵 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 99913 Accepted Submission(s): 42300 Problem 阅读全文
posted @ 2017-09-27 21:06 nimphy 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 最大字段和题型,推荐做题顺序: HDU1003 HDU1024 HDU1081 ZOJ2975 ZOJ2067 阅读全文
posted @ 2017-09-27 21:06 nimphy 阅读(223) 评论(0) 推荐(0) 编辑
摘要: HDU1465HDU2048HDU2049#include #include #include #include #include using namespace std; long long s[21],c[21]; void _gets() { s[0]=0;s[1]=0;s[2]=1; for(i=3;i>n; while(n--){ cin>>m; pr... 阅读全文
posted @ 2017-09-27 21:06 nimphy 阅读(106) 评论(0) 推荐(0) 编辑
摘要: Max Sum Plus Plus Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 31583 Accepted Submission(s): 1 阅读全文
posted @ 2017-09-27 21:06 nimphy 阅读(300) 评论(0) 推荐(0) 编辑
摘要: Lenny likes to play the game of lotto. In the lotto game, he picks a list of N unique numbers in the range from 1 to M. If his list matches the list o 阅读全文
posted @ 2017-09-27 21:06 nimphy 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 昨天做过一样的题: 平方和公式:n*(n+1)*(2n+1)/6 阅读全文
posted @ 2017-09-27 21:06 nimphy 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 第二次遇到双塔DP,再写一下。 (flag是为了避免memset多次导致的时间浪费) #include<cstdio> #include<cstdlib> #include<iostream> #include<cstring> using namespace std; char x[410],y[ 阅读全文
posted @ 2017-09-27 21:06 nimphy 阅读(386) 评论(0) 推荐(0) 编辑
摘要: #include #include #include using namespace std; struct In { int id; int ReturnTime; int period; In(int i, int p):id(i), ReturnTime(p), period(p){} //重载写在在里面又怎么写? }; bool operato... 阅读全文
posted @ 2017-09-27 21:06 nimphy 阅读(105) 评论(0) 推荐(0) 编辑
摘要: ZOJ2150 快速幂,但是用递归式的好像会栈溢出。 #include<cstdio> #include<cstdlib> #include<iostream> #include<cmath> using namespace std; long long M,i; #define LL long l 阅读全文
posted @ 2017-09-27 21:06 nimphy 阅读(92) 评论(0) 推荐(0) 编辑