Giter Club home page Giter Club logo

lg-solution-formatter's Introduction

👋 Hi, Imken here!

zh-CN (Native) / zh-TW / en-US

大概已经退役信息学奥林匹克竞赛选手。
Maybe an (AFOed) OIer.

现役高一学生,没有目标,不思进取,目前全面开摆中。

Website (zh-CN/en-US) | Blog (zh-CN)

GitHub Readme Status

GPG signing key:

Imken Luo <[email protected]>
18B0 D3C8 8562 8EEE EB16 FA92 0DF5 9E05 584F C98E

lg-solution-formatter's People

Contributors

dependabot[bot] avatar immccn123 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

lg-solution-formatter's Issues

能用之前的 Todo List

列个 Todo 吧。

  • 数学公式相关
    • 常见的 gcd -> \gcd 之类的
  • 标点符号
    • 句末句号
  • 多级列表完全支持
  • 表格支持
  • 宽松语法支持

Formatter adds extra spaces

Original:

1. 两种运算并列时,`&` 运算**优先**`|` 运算。

Expected:

1. 两种运算并列时,`&` 运算**优先**`|` 运算。

Current:

1. 两种运算并列时,`&` 运算 **优先**`|` 运算。

格式化后出现多余空格

-对于 $b \le \sqrt{n}$ 的可以直接一次 $O(\log)$ 暴力,$b \ge \sqrt{n}$ 的只会递归两次,整除分块处理一下就行。
+对于 $b \le \sqrt{n}$ 的可以直接一次 $O(\log)$ 暴力, $b \ge \sqrt{n}$ 的只会递归两次,整除分块处理一下就行。

错误被格式化

Origin:

$3 \ m \ x_1 \ x_2 \ x_m$:将 $x_1, x_2, \ldots, x_m$ 号序列顺次拼接,得到一个新序列,并询问其众数。如果不存在满足上述条件的数,则返回 $-1$。数据保证对于任意 $1 \le i \le m$,$x_i$ 是一个仍然存在的序列,$1 \le x_i \le n + q$,且拼接得到的序列非空。**注意:不保证 $\boldsymbol{x_1, \ldots, x_m}$ 互不相同,询问中的合并操作不会对后续操作产生影响。**

$4 \ x_1 \ x_2 \ x_3$:新建一个编号为 $x_3$ 的序列,其为 $x_1$ 号序列后顺次添加 $x_2$ 号序列中数字得到的结果,然后删除 $x_1, x_2$ 对应的序列。此时序列 $x_3$ 视为存在,而序列 $x_1, x_2$ 被视为不存在,在后续操作中也不会被再次使用。保证 $1 \le x_1, x_2, x_3 \le n + q$、$x_1 \ne x_2$、序列 $x_1, x_2$ 在操作前存在、且在操作前没有序列使用过编号 $x_3$。

Output:

$3 \ m \ x_1 \ x_2 \ x_m$:将 $x_1, x_2, \ldots, x_m$ 号序列顺次拼接,得到一个新序列,并询问其众数。如果不存在满足上述条件的数,则返回 $-1$。数据保证对于任意 $1 \le i \le m$,$x_i$是一个仍然存在的序列,$1 \le x_i \le n + q$,且拼接得到的序列非空。 \times  \times 注意:不保证$\boldsymbol{x_1, \ldots, x_m}$ 互不相同,询问中的合并操作不会对后续操作产生影响。**

$4 \ x_1 \ x_2 \ x_3$:新建一个编号为 $x_3$ 的序列,其为 $x_1$ 号序列后顺次添加 $x_2$ 号序列中数字得到的结果,然后删除 $x_1, x_2$ 对应的序列。此时序列 $x_3$ 视为存在,而序列 $x_1, x_2$ 被视为不存在,在后续操作中也不会被再次使用。保证 $1 \le x_1, x_2, x_3 \le n + q$、$x_1 \ne x_2$、序列$x_1, x_2$在操作前存在、且在操作前没有序列使用过编号$x_3$。

Expected not be formatted.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.