首先输出个\(\LaTeX\ \),看上去非常高端!

然后上论文,测试以后发现不行QAQQQ

貌似只能插入一个公式来着。。。比如:$\theta(\vec{u},\ \vec{v}) = arccos(\frac {\vec{u} \cdot \vec{v}} {|\vec{u}| \ |\vec{v}|})$

不过貌似加载公式挺快的!恩恩恩

以后就有写题解更简单了!赞

$$y = \frac{g} {-2 * cos^{2}\theta * v_{0}^ {2}} * x ^ {2} + tan\theta * x$$

$$A = \frac{y \ + \frac{g} {v0 ^ {2}}* x ^ {2}} {\sqrt{x ^{2} + y ^{2}}}$$

$$\phi = arctan \frac {y} {x}$$

$$\theta = \frac{arcsin A + \phi} {2} or \frac {\pi - arcsin A + \phi} {2}$$

$$\begin{align} ans &= ans \\\end{align}$$

$$\begin{align} ans &= \sum_{i=1}^{n}\sum_{j=1}^{m}\sum_{d|i, d|j}\mu(d)\lfloor \frac{n}{i} \rfloor \lfloor \frac{m}{j} \rfloor \\&= \sum_{d=1}^{n}\sum_{i=1}^{n/d}\sum_{j=1}^{m/d}\mu(d) \lfloor \frac{n}{id} \rfloor \lfloor \frac{m}{jd} \rfloor ~~~~~(*) \\&= \sum_{d=1}^{n} \mu(d) (\sum_{i=1}^{n/d} \lfloor \frac{n}{id} \rfloor \times \sum_{j=1}^{m/d} \lfloor \frac{m}{jd} \rfloor) \\&= \sum_{d=1}^{n} \mu(d) f(\frac{n}{d}) f(\frac{m}{d}) \\ \end{align}$$

$Solution 1 (9\ points):\\We\ try\ all\ possible\ n\ values (starting\ from\ smallest - 1).\\With\ each\ n,\ we\ check\ if\ it\ is\ the\ answer\ using\ brute-force -\ checking\ if\ all\ sequence\ numbers\ contains\ required\ digits.\\Time\ complexity:\ o(N*K).\\N -\ correct\ answer.\\Since\ k <= 1000\ and\ n <= 1000\ in\ the\ first\ subtask,\ this\ solution\ is\ enough\ for\ it.\\Solution 2 (25\ points):\\We\ are\ assuming\ that\ all\ elements\ of\ the\ given\ sequence\ are\ equal (subtask 3).\\Lets\ donate\ this\ digit\ as\ d.\\If 1 <=\ d <= 8,\ than\ our\ answer\ n =\ d*10^x =\ d0..0.\\If\ d = 9,\ than\ n = 8..89 (some\ number\ of\ digits '8'\ and\ one\ digit '9'\ at\ the\ end).\\If\ d = 0,\ than\ n = 10^x = 10..0.\\The\ length\ of\ n\ depends\ on\ k.\\For\ example,\ if\ k = 5\ and\ our\ sequence\ is '3 3 3 3 3',\ than\ d = 3\ and\ n =\ d0..0 = 30..0 = 30.\\If\ k = 11\ and\ d = 3,\ than\ n =\ d0..0 = 30..0 = 300.\\Time\ complexity:\ o(1).\\Solution 3 (100\ points):\\We'll\ solve\ our\ task\ by\ solving\ a\ more\ complex\ task\ first:\ for\ each\ i-th\ sequence\ element\ we'll\ declare\ sequence\ a_i.\\A_i\ is\ the\ sequence\ of\ digits\ which\ i-th\ sequence\ element\ has\ to\ have.\\For\ our\ initial\ task,\ a_i = {d_i},\ where\ d_i - ...\\Lets\ donate\ n = (X)y,\ where y =\ n\ mod 10\ is\ the\ last\ digit\ and\ x =\ n\ div 10.\\Now\ we\ have\ to\ try\ all\ possible y\ values (0, 1, ..., 9).\\After\ we\ have\ locked y\ value\ with\ one\ of\ possible\ values,\ our\ sequence\ looks\ like\ this: (X)y, (X)y+1, ..., (X)8, (X)9, (X+1)0, (X+1)1 ..., (X+1)8, (X+1)9, (X+2)0, ...\\After\ removing\ last\ digit,\ we\ get\ sequence\ x, ...,\ x,\ x+1, ...,\ x+1,\ x+2, ...\\What\ digits\ does\ x\ has\ to\ have?\\(X)y\ has\ a_1,\ so\ x\ must\ have\ a_1 \ {y}. (X)(y+1)\ has\ a_2,\ so\ x\ must\ have\ a_2 \ {y+1}\ and\ so\ on.\\By\ merging\ these\ requirements,\ we\ can\ get\ a\ new\ sequence\ of\ sets\ b_1,\ b_2, ...\\B_1\ declares\ required\ digits\ for\ x,\ b_2 -\ for (X+1)\ and\ so\ on.\\We\ repeat\ the\ same\ steps\ with\ our\ new\ sequence.\\What\ happens\ when\ we\ repeat\ these\ steps?\\We\ started\ with\ sequence\ length\ k,\ so\ after\ first\ step\ our\ new\ sequence\ length\ will\ be\ not\ bigger\ than [K/10]+1.\\So\ after\ log\ k\ steps\ our\ sequence\ will\ be\ of\ length 1\ or 2 -\ at\ this\ step\ we\ can\ produce\ the\ answer.\\Time\ complexity:\ o(K*log\ k)\\Solution 4 (42\ points):\\If\ the\ previous\ solution\ is\ programmed\ inefficiently,\ it\ is\ possible\ to\ acquire\ an\ o(K^2)\ solution.\\Time\ complexity:\ o(K^2).$

LaTeX测试的更多相关文章

  1. Cnblogs支持Latex及测试

    为了方便后续机器学习文章的书写,因此在cnblogs中设置了支持Latex. 设置: 在"后台管理"中"页首Html代码"中加入如下代码: <script ...

  2. Latex 1: 解决latex中遇到一个常见错误:"Improper alphabetic constant."

    1.问题: 本人是在WIN7下用texlive 2016,编辑器用的是WinEdt 10.1 ,运行如下代码: \documentclass{ctexbook} \begin{document} \t ...

  3. 使用Perl脚本编译Latex

    使用Perl脚本编译Latex 脚本能实现Latex文本的初级编译,并将生成的中间文件移动到同一个目录 调用方法 chmod +x xelatex2pdf.pl xelatex2pdf.pl -n 2 ...

  4. cnbolgs博客中添加Latex支持

    参考:http://www.cnblogs.com/ilogic/archive/2012/08/05/latex.html 主要是利用在线生成公式的工具:MathJax,但要在博客上获得 MathJ ...

  5. Latex公式导出word,Latex转换MathML使用POI导出公式可编辑的Word文件

    背景 之前在 使用spire.doc导出支持编辑Latex公式的标准格式word 博客中写过,使用spire.doc来生成word,不得不说spire.doc的api操作起来还是比较方便,但是使用的过 ...

  6. 这是一个关于Latex的测试

    这是行内公式的例子 \( c=\sqrt{a^2+b^2} \). 下面是行间公式的例子\[ c=\sqrt{a^2+b^2}. \] 注意: 行内公式不是用$分界, 而是 \( c=\sqrt{a^ ...

  7. 测试数学公式latex

    \( J_\alpha(x) = \sum\limits_{m=0}^\infty \frac{(-1)^m}{m! + 1)}{\left({\frac{x}{2}}\right)}^{2 m + ...

  8. [测试] Markdown+Latex

    标题 标题 标题 标题 标题 标题 #include <cstdio> #define R register int #define I inline void #define IL in ...

  9. markdown | Latex | 书写测试

    我永远喜欢markdown! 建图 graph TD; 1-->2 1-->3 1-->4 2-->5 2-->6 3-->7 3-->8 4-->9 ...

随机推荐

  1. 【CC评网】2013.第42周 话说时间管理

    时间管理 工作几年之后,大家都会有意识的培养时间管理的概念:但如何真正做到位,并持续坚持,并不是一件容易的事: 虽然关注时间管理已有几年,但目前我对于时间的利用并不高效: 理论上的东西就是那些,但真正 ...

  2. implement Google's Open Source Slam "Cartographer" demos in ROS/rviz

    Cartographer is a backpack equipped with Simultaneous Localization and Mapping (SLAM) technology. 1. ...

  3. 让WinForm窗体的大小固定,不能调整大小

    窗体FormBorderStyle属性设置为:FixedSingle,再把最大化禁用就可以了

  4. XAF应用开发教程(六)控制器

    是的,XAF也是MVC结构的,但不仅限于MVC,ViewModel也存在,它是一项复合技术,AOP,ORM,MVC都有. 真实运行的系统中,仅有增删改查功能肯定是远远不够的,ERP.CRM等系统的开发 ...

  5. yii CDbCriteria 类的总结

    在编程中,我们通常会需要查询些东西,但是通过查询的时候,yii有个集成的类--- CDbCriteria():通过该类,我们可以更加便捷的调用数据. 参考网址:http://www.cnblogs.c ...

  6. Yii javascript 的结合 账号禁用 激活 的设置。

    2014-02-16 控制器中的代码: public function actionUpdown(){ //print_r($_POST);die(); if(Buser::model()->u ...

  7. Scrum Meeting---Four(2015-10-28)

    今日已完成任务和明日要做的任务 姓名 今日已完成任务 今日时间 明日计划完成任务 估计用时 董元财 今日我完成了数据库表的设计以及创建 3h 进行Java Web工程的编写 4h 胡亚坤 用户之间的通 ...

  8. SQL server数据类型、增删改查

    数据类型: 整数型:bigint.int.smallint.mediumint.tinyint 小数类型:decimal.numeric 浮点型:real.float.double 位型:bit 字符 ...

  9. spring注入简记

    我们知道对象是交给容器来管理的那么 init() destroy():可以在bean配置中设置对象初识化前执行和销毁后执行 int-delay=""表示是否延迟实例化即容器实例时还 ...

  10. Android性能优化典范(二)

    Google前几天刚发布了Android性能优化典范第2季的课程,一共20个短视频,包括的内容大致有:电量优化,网络优化,Wear上如何做优化,使用对象池来提高效率,LRU Cache,Bitmap的 ...