首先输出个\(\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. TestNg测试框架使用笔记

    Gradle支持TestNG test { useTestNG(){ //指定testng配置文件 suites(file('src/test/resources/testng.xml')) } } ...

  2. Python基础学习笔记(三)运算符

    参考资料: 1. <Python基础教程> 2. http://www.runoob.com/python/python-chinese-encoding.html 3. http://w ...

  3. jQuery mobile 前台设计中的css em的使用。

    先贴个网址:http://www.uml.org.cn/html/201207311.asp 大家可以参考一下面这张转换表(body字体为16px时的值) 总结 长篇介绍了一大堆,唯一想告诉大家的是以 ...

  4. XML约束——Schema约束

    XML Schema 也是一种用于定义和描述 XML 文档结构与内容的模式语言,其出现是为了克服 DTD 的局限性 XML Schema VS DTD: •XML Schema符合XML语法结构. • ...

  5. HDU-4521 小明系列问题——小明序列 间隔限制最长上升子序列

    题意:给定一个长度为N的序列,现在要求给出一个最长的序列满足序列中的元素严格上升并且相邻两个数字的下标间隔要严格大于d. 分析: 1.线段树 由于给定的元素的取值范围为0-10^5,因此维护一棵线段树 ...

  6. 巴科斯范式和sql语言

    查询Mysql帮助文档,如何写SQL语句的时候,需要注意SQL语法,这里就需要知道BNF巴科斯范式. 巴科斯范式:BNF用于描述计算机语言.基本的规则如下: 尖括号<> 内包含的为必选项. ...

  7. Java编程思想学习笔记_2(继承和多态)

    静态初始化: 静态初始化只在必要的时刻进行.(即当程序需要加载类进入内存的时候,执行静态初始化.静态变量和静态代码块的初始化顺序,按照在代码中声明的顺序老执行.例如:如果要执行某个public类,那么 ...

  8. openwrt: Makefile 框架分析

    openwrt: Makefile 框架分析 原文链接:blog.chinaunix.net/uid-26675482-id-4704952.html 本篇的主要目的是想通过分析Makefile,了解 ...

  9. Bootstrap文本对齐风格

    在排版中离不开文本的对齐方式.在CSS中常常使用text-align来实现文本的对齐风格的设置.其中主要有四种风格: ☑  左对齐,取值left ☑  居中对齐,取值center ☑  右对齐,取值r ...

  10. Bootstrap强调相关的类

    在Bootstrap中除了使用标签<strong>.<em>等说明正文某些字词.句子的重要性,Bootstrap还定义了一套类名,这里称其为强调类名(类似前面说的“.lead” ...