摘要: 2.完整代码: import java.util.Scanner; import javax.swing.plaf.basic.BasicInternalFrameTitlePane.MaximizeAction; public class Matrix { int size; double[][] 阅读全文
posted @ 2020-11-10 10:32 四叶草的诉说 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 将博客搬至CSDN。 阅读全文
posted @ 2017-08-05 18:47 四叶草的诉说 阅读(92) 评论(0) 推荐(0) 编辑
摘要: Security Check Problem Description In airport of Bytetown, there are two long queues waiting for security check. Checking a person needs one minute, a 阅读全文
posted @ 2017-08-05 18:28 四叶草的诉说 阅读(140) 评论(0) 推荐(0) 编辑
摘要: Counting Divisors Problem Description In mathematics, the function d(n) denotes the number of divisors of positive integer n.For example, d(12)=6 beca 阅读全文
posted @ 2017-08-03 18:29 四叶草的诉说 阅读(186) 评论(0) 推荐(0) 编辑
摘要: When we are focusing on solving problems, we usually prefer to stay in front of computers rather than go out for lunch. At this time, we may call for 阅读全文
posted @ 2017-07-18 10:07 四叶草的诉说 阅读(214) 评论(0) 推荐(0) 编辑
摘要: LOOPS Time Limit: 15000/5000 MS (Java/Others) Memory Limit: 125536/65536 K (Java/Others)Total Submission(s): 6423 Accepted Submission(s): 2572 Problem 阅读全文
posted @ 2017-07-13 09:38 四叶草的诉说 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 转载自http://www.cnblogs.com/ka200812/archive/2012/08/03/2621345.html 我们知道,有些DP方程可以转化成DP[i]=f[j]+x[i]的形式,其中f[j]中保存了只与j相关的量。这样的DP方程我们可以用单调队列进行优化,从而使得O(n^2 阅读全文
posted @ 2017-07-03 14:56 四叶草的诉说 阅读(172) 评论(0) 推荐(0) 编辑
摘要: We all know the Super Powers of this world and how they manage to get advantages in political warfare or even in other sectors. But this is not a poli 阅读全文
posted @ 2017-07-01 14:27 四叶草的诉说 阅读(618) 评论(0) 推荐(1) 编辑
摘要: #include #include #define ll long long #define mod 20100713 const int maxn=1000005; ll a[maxn]; ll poww(ll x,int n) { ll ret=1; while(n) { if(n&1) ret=ret*x%mod; ... 阅读全文
posted @ 2016-07-29 13:43 四叶草的诉说 阅读(116) 评论(0) 推荐(0) 编辑
摘要: All the people in the byteland want to stand in a line in such a way that no person stands closer to the front of the line than his father. You are gi 阅读全文
posted @ 2016-07-22 14:34 四叶草的诉说 阅读(191) 评论(0) 推荐(0) 编辑