LaTeX测试
首先输出个\(\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}$$
$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测试的更多相关文章
- Cnblogs支持Latex及测试
为了方便后续机器学习文章的书写,因此在cnblogs中设置了支持Latex. 设置: 在"后台管理"中"页首Html代码"中加入如下代码: <script ...
- Latex 1: 解决latex中遇到一个常见错误:"Improper alphabetic constant."
1.问题: 本人是在WIN7下用texlive 2016,编辑器用的是WinEdt 10.1 ,运行如下代码: \documentclass{ctexbook} \begin{document} \t ...
- 使用Perl脚本编译Latex
使用Perl脚本编译Latex 脚本能实现Latex文本的初级编译,并将生成的中间文件移动到同一个目录 调用方法 chmod +x xelatex2pdf.pl xelatex2pdf.pl -n 2 ...
- cnbolgs博客中添加Latex支持
参考:http://www.cnblogs.com/ilogic/archive/2012/08/05/latex.html 主要是利用在线生成公式的工具:MathJax,但要在博客上获得 MathJ ...
- Latex公式导出word,Latex转换MathML使用POI导出公式可编辑的Word文件
背景 之前在 使用spire.doc导出支持编辑Latex公式的标准格式word 博客中写过,使用spire.doc来生成word,不得不说spire.doc的api操作起来还是比较方便,但是使用的过 ...
- 这是一个关于Latex的测试
这是行内公式的例子 \( c=\sqrt{a^2+b^2} \). 下面是行间公式的例子\[ c=\sqrt{a^2+b^2}. \] 注意: 行内公式不是用$分界, 而是 \( c=\sqrt{a^ ...
- 测试数学公式latex
\( J_\alpha(x) = \sum\limits_{m=0}^\infty \frac{(-1)^m}{m! + 1)}{\left({\frac{x}{2}}\right)}^{2 m + ...
- [测试] Markdown+Latex
标题 标题 标题 标题 标题 标题 #include <cstdio> #define R register int #define I inline void #define IL in ...
- markdown | Latex | 书写测试
我永远喜欢markdown! 建图 graph TD; 1-->2 1-->3 1-->4 2-->5 2-->6 3-->7 3-->8 4-->9 ...
随机推荐
- python_way day12 RabbitMQ ,pymysql
python_way day12 1.RabbitMQ 2.pymysql RabbitMQ 1.基本用法 """ producer """ ...
- hdu 5927 Auxiliary Set 贪心
Auxiliary Set Time Limit: 9000/4500 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Pr ...
- iOS - OC NSString 字符串
前言 @interface NSString : NSObject <NSCopying, NSMutableCopying, NSSecureCoding> @interface NSM ...
- Web Service 接口实现大量数据传输的解决方案
1,流程图 2,流程说明:线程1开始请求接口获取1W条数据,当数据成功获取后,接口是闲置的,这时我们开始线程2获取数据,同时线程1继续执行获取数据的后续工作,如果转换数据,这里我用的办法是,使用预先定 ...
- 08 高效的SQL
编写高效 SQL 需要以下知识 有关所查询内容的物理组织的知识 数据库能做什么的知识, 例如: 如果你不知道跳跃扫描索引及其用途, 那么你可能会看着模式说”索引丢了” SQL 所有错综复杂的知识 对目 ...
- mysql delimiter
默认情况下,mysql遇到分号; 就认为是一个命令的终止符, 就会执行命令.而有些时候,我们不希望这样,比如存储过程中包含多个语句,这些语句以分号分割,我们希望这些语句作为一个命令,一起执行,怎么解决 ...
- thinkphp分页显示
先在Common\Comon里建一个function.php公共方法,然后在里面新建一个getpage方法,代码如下: <?php /** * TODO 基础分页的相同代码封装,使前台的代码更少 ...
- maven常见问题问答
1.前言 Maven,发音是[`meivin],"专家"的意思.它是一个很好的项目管理工具,很早就进入了我的必备工具行列,但是这次为了把project1项目完全迁移并应用maven ...
- 【Todo】【转载】深度学习&神经网络 科普及八卦 学习笔记 & GPU & SIMD
上一篇文章提到了数据挖掘.机器学习.深度学习的区别:http://www.cnblogs.com/charlesblc/p/6159355.html 深度学习具体的内容可以看这里: 参考了这篇文章:h ...
- hdu 3117 Fibonacci Numbers
这道题其实也是水题来的,求Fibonacci数的前4位和后4位,在n==40这里分界开.后4位不难求,因为n达到了10^18的规模,所以只能用矩阵快速幂来求了,但在输出后4位的时候一定要注意前导0的处 ...