A. Palindromes 留坑. B. Modules 将$a$排序,那么最优解中$a_n$一定放在前后一个,且前面$n-1$个每次要么放最小的,要么放最大的,区间DP即可. #include<cstdio> #include<algorithm> #include<bitset> #include<cmath> using namespace std; const int N=505,M=1000; int n,i,j,k,a[N],ans; bits…
给出$P(<=10^9)$, 求有多少个有序三元组$(a, b, c),\ gcd(a, b, c) = 1,\ a + b + c <= P$且以它们构成的三角形中存在某个角是另外一个角的两倍. 题解: 不妨设$a,b,c$所对的角分别是$A,B,C$且$C = 2*A$. 根据正弦定理$$\frac{a}{\sin A} = \frac{b}{\sin B} = \frac{c}{\sin C}$$ $$\frac{a}{\sin A} = \frac{b}{\sin (\pi-3A)}…
2015.12.29~2015.12.30真题回顾!-- HTML5学堂 吃饭,能够解决饥饿,提供身体运作机能.练习就像吃饭,强壮自己,提升编程技能,寻求编程技巧的最佳捷径!吃饭不能停,练习同样不能停哦! HTML5真题[2015.12.29]题目 学习JavaScript或应用JavaScript进行脚本开发,“变量”这是必须要学会使用的.什么是变量呢?又什么作用呢?ok,大家稍安勿躁哦,试体验体验这题目<HTML5真题[2015.12.29]题目>与 <HTML5真题[2015.12…
2015.12.21~2015.12.24真题回顾!-- HTML5学堂 山不在高,有仙则名!水不在深,有龙则灵!千里冰封,非一日之寒!IT之路,须厚积薄发!一日一小练,功成不是梦!小小技巧,尽在HTML5学堂! HTML5真题[2015.12.21]题目 作为弱类型的JavaScript语言来说,在开发中进行数据类型的检测,那是在所难免的啦!如何检测?用什么来检测?哈哈,有疑问,就会有答案,那我就给你们透露透露吧!在JavaScript中比较常用的数据类型检测方式主要有“typeof” 和 “…
微软刚刚宣布了 Visual Studio 2015和.Net 2015 预览版,并同时提供了下载. 微软在纽约正进行中的#Connect# 全球开发者在线大会上宣布了Visual Studio 2015 和.NET 2015预览版,将为开发者提供构建跨多个平台应用程序的新功能,包括从Windows 到 Linux 到iOS,是的,以及到Android. 微软MSDN介绍称,目前移动开发者需要面对Android.iOS和Windows等繁杂设备,我们致力于让开发者通过VS为所有移动平台开发应用,…
NCPC 2015Problem DDisastrous DowntimeProblem ID: downtimeClaus Rebler, cc-by-saYou’re investigating what happened when one ofyour computer systems recently broke down. So faryou’ve concluded that the system was overloaded; itlooks like it couldn’t ha…
Update everyday.(Last edit:4/30 01:00) Task 1:TPO X 2.5(finish 1,then finish 2 more) Task 2:TC Tarjan相关(Ch.22) Task 3:daily tasks Task 4:test(1 day left) 4.28: waste time:16:30~19:00 Completed Work: NCE 4,5 4.29:nothing…
arXiv is an e-print service in the fields of physics, mathematics, computer science, quantitative biology, quantitative finance and statistics. There'll be lots of papers in advance. Here's some recent papers which is important or interesting. 1. Obj…
part 组员                工作              工作耗时/h 明日计划 工作耗时/h    UI 冯晓云  在pdf阅读页面添加生词本显示:UI美化     6 完善显示页面的功能   4 foxit PDF Reader 朱玉影 与张葳完成的连页显示部分代码merge   4  预览页面的UI美化  4 login 周以舟 完善登录注册页面,并能实现基本功能  2  登陆后页面跳转  2 sync 林建平  client的实现  6  client的实现  4 f…