March 01st, 2018 Week 9th Thursday】的更多相关文章

Let bygones be bygones. 过去的就让它过去吧. What happened has happened, it cannot be undone, so just leave it in the way it si, and think of the way out or ways to make things better. To forgive and to forget, that can be very challenging in practice, but lea…
Easy come, easy go. 易得则易失. Easy come, easy go, I finally undestand the phrase through somewhat hard way. Things were going so well for a moment, I was so confident that it would last forever, but it seemed my fate had quite the opposite in mind. Ever…
No cross, no crown. 不经历风雨,怎能见彩虹. Sometimes you can see a beautiful rainbow high in the sky without having to experience wind and rain, for you can stay in some safe and comfortable places And for some unfortunate ones, they only saw rains but no rain…
Make hay while the sun shines. 勿失良机. Last night the toothache woke me up and it was very difficult for me to get asleep again. I felt very depressed then, living a poor life, having no money to buy a house or just rent a big one for my lover who has…
有点像计蒜之道里的 京东的物流路径 题目描述 给定一棵 N 个节点的树,每个节点有一个正整数权值.记节点 i 的权值为 Ai.考虑节点 u 和 v 之间的一条简单路径,记 dist(u, v) 为其长度,gcd(u, v) 为路径上所有节点(包含 u 和 v)的权值的最大公因子.min(u, v) 为路径上所有节点的权值的最小值.请求出所有节点对 (u, v) 中 dist(u, v) · gcd(u, v) · min(u, v) 的最大值 输入格式 输入的第一行包含一个整数 T,代表测试数据…
目录 题意 解析 AC_code @(Codechef March Cook-Off 2018. Maximum Tree Path) 题意 给你一颗\(n(1e5)\)个点有边权有点权的树,\(Min(u,v)\)表示\(u,v\)路径最小点权,\(gcd(u,v)\)表示\(u,v\)路径点权的最大公因数,\(dis(u,v)\)表示\(u,v\)路径大小. 输出\(max(dis(u,v)*gcd(u,v)*Min(u,v))\) 解析 法一: 外层枚举路径的gcd,并把两端点是gcd倍数…
I learned the value of hard work by working hard. 只有真的努力了,才会知道努力的价值. On the day, March 12th 2017, I wrote the same words, and I felt the same feelings just as I feel today, depressed and frustrated. Every time I though I could bring an end to it, une…
Pleasure in the job puts perfection in the work. 乐于工作才能有完美表现. From Aristole. Do you want promotion? Do you want to get some raise in paycheck? If you want, you should improve your performace in your work, make it perfect, or at least put it at a leve…
Empty your cup so that it may be filled. 清空杯子,方能再次装满. From Bruce Lee. We can't learn anything new if we already feel that we know. Please stay humble, please open ourselves to new ideas, and be willing to change our preconceptions. But it is difficul…
You cannot change the circumstances but you can change yourself. 既然改变不了环境,那就改变自己. From Jim Rohn. Recently I am getting more and more dissatisfied with the allocation of resources in my department. It seems there are huge differences about the goals o…