首先输出个\(\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. pyspark 中启动 jupyter notebook

    还是打算选择python学习spark编程 因为java写函数式比较复杂,scala学习曲线比较陡峭,而且sbt和eclipse和maven的结合实在是让人崩溃,经常找不到主类去执行 python以前 ...

  2. CSS笔记(三)背景

    CSS 允许应用纯色作为背景,也允许使用背景图像创建相当复杂的效果. 参考:http://www.w3school.com.cn/css/css_background.asp 背景色 p {backg ...

  3. Spring环境的搭建与测试 (spring2.5.6)

    这里是采用的视频里面的spring版本 下载spring2.5.6, 然后进行解压缩,在解压目录中找到下面jar文件,拷贝到类路径下 dist\spring.jar lib\jakarta-commo ...

  4. 管道寄售库存MRKO结算后,冲销问题

    管道寄售库存MRKO结算后,冲销问题 1.通常使用MIRO对采购订单进行发票校验后,若发现校验错误,直接使用MR8M取消发票校验,同时手工F-03对借发票校验借方GRIR和取消发票校验的贷方GRIR进 ...

  5. python使用open经常报错:TypeError: an integer is required的解决方案

    错误是由于从os模块引入了所有的函数导致的,os模块下有一个open函数,接受整型的文件描述符和打开模式,from os import *引入os模块的open函数,覆盖了python内建的open函 ...

  6. 使用phpmaill发送邮件的例子

    首先,要下载php_mail软件包 核心代码: index.php <?php include "mail.php"; if (!empty($_POST['to']) &a ...

  7. Java.util.concurrent包学习(一) BlockingQueue接口

    JDK1.7 BlockingQueue<E>接口 (extends Queue<E>) 所有父接口:Collection<E>,Iterable<E> ...

  8. c#动态创建ODBC数据源

    使用C#有两种方法可以动态的创建ODBC数据源,这里我用比较常用的SQL2000作为例子. 方法1:直接操作注册表,需要引用Microsoft.Win32命名空间 /// <summary> ...

  9. git服务器搭建-new

    http://blog.chinaunix.net/uid-26729093-id-4652536.html 基本命令使用:http://www.cnblogs.com/xdao/p/linux_gi ...

  10. commonJS — 日期操作(for Date)

    for Date github: https://github.com/laixiangran/commonJS/blob/master/src/forDate.js 代码 /** * Created ...