XMOJ-Script-dev / XMOJ-Script

XMOJ增强脚本
https://www.xmoj-bbs.me
GNU General Public License v3.0
4 stars 5 forks source link

[FunctionsUpdate]优化题目内容复制功能 #677

Closed zhouyiqing0304 closed 1 month ago

zhouyiqing0304 commented 1 month ago

Thank you for your contribution to the XMOJ-Script Community!

Please read the comments below to help us consider your Pull Request.

We are all volunteers and completing the process outlined will help us review your commits quicker.

Please use this pull request template, or your pull request will be closed.

Please make sure you

  1. Base your code and PRs against the repositories developmental branch.

When you open a pull request, please delete the text above.


What does this PR aim to accomplish?:

How does this PR accomplish the above?:


By submitting this pull request, I confirm the following:

  1. I have read and understood the contributors guide, as well as this entire template. I understand which branch to base my commits and Pull Requests against.
  2. I have commented my proposed changes within the code and I have tested my changes.
  3. I am willing to help maintain this change if there are issues with it later.
  4. It is compatible with the GNU General Public License v3.0
  5. I have squashed any insignificant commits. (git rebase)
  6. I have checked that another pull request for this purpose does not exist.
  7. I have considered, and confirmed that this submission will be valuable to others.
  8. I accept that this submission may not be used, and the pull request closed at the will of the maintainer.
  9. I give this submission freely, and claim no ownership to its content.

zhouyiqing0304 commented 1 month ago

举个例子,https://www.xmoj.tech/problem.php?id=3124 对于 $10\%$ 的数据,$T = 1$。 对于 $30\%$ 的数据,$T \leq 4, N \leq 4, M \leq 100$,所有价格 $10 \leq P[i][j] \leq 100$。 另有 $15\%$ 的数据,$T \leq 100, N = 1$。 另有 $15\%$ 的数据,$T = 2, N \leq 100$。 对于 $100\%$ 的数据,$T \leq 100, N \leq 100, M \leq 10^3$,所有价格 $1 \leq P[i][j] \leq 10^4$,数据保证任意时刻,小明手上的金币数不可能超过 $10^4$。

更新成 对于 10% 的数据,T = 1。

对于 30% 的数据,T ≤ 4, N ≤ 4, M ≤ 100,所有价格 10 ≤ P[i][j] ≤ 100。

另有 15% 的数据,T ≤ 100, N = 1。

另有 15% 的数据,T = 2, N ≤ 100。

对于 100% 的数据,T ≤ 100, N ≤ 100, M ≤ 10^3,所有价格 1 ≤ P[i][j] ≤ 10^4,数据保证任意时刻,小明手上的金币数不可能超过 10^4。

zhouyiqing0304 commented 1 month ago

@boomzero @PythonSmall-Q 来看看啊!!!

ptsq-bot commented 1 month ago

有没有一种可能我们就是想要markdown

ptsq-bot commented 1 month ago

你可以旁边加一个按钮交复制内容

ptsq-bot commented 1 month ago

然后把之前的改成复制markdown

ptsq-bot commented 1 month ago

@zhouyiqing0304

zhouyiqing0304 commented 1 month ago

?

zhouyiqing0304 commented 1 month ago

这不就是复制题目内容嘛

zhouyiqing0304 commented 1 month ago

只是优化了一下而已@ptsq-bot

ptsq-bot commented 1 month ago

@zhouyiqing0304 你这还是markdown嘛?

ptsq-bot commented 1 month ago

我们想要latex的哦~

zhouyiqing0304 commented 1 month ago

啥意思

zhouyiqing0304 commented 1 month ago

@ptsq-bot 不是很理解你的意思

ptsq-bot commented 1 month ago

@zhouyiqing0304 latex没了! image

zhouyiqing0304 commented 1 month ago

然后呢 这个东西是干嘛的

zhouyiqing0304 commented 1 month ago

哪有用户会看这个的 不是以用户为中心吗 @ptsq-bot

ptsq-bot commented 1 month ago

不是啊,你latex不要了吗?数学公式哪里来?不同平台的latex显示是一样的,但是数学公式是不同电脑不一样的(有细微的差别),所以让你加一个按钮

ptsq-bot commented 1 month ago

哪有用户会看这个的 不是以用户为中心吗 @ptsq-bot

我!这功能我经常用

zhouyiqing0304 commented 1 month ago

大部分用户用不着~ 哪个正常人会复制过去好好研究公式的

zhouyiqing0304 commented 1 month ago

我同意加一个按钮,但是必须开一个功能,并且默认关闭

ptsq-bot commented 1 month ago

大部分用户用不着~ 哪个正常人会复制过去好好研究公式的

所以让你加一个按钮!

zhouyiqing0304 commented 1 month ago

你要是同意了我现在去改

ptsq-bot commented 1 month ago

我同意加一个按钮,但是必须开一个功能,并且默认关闭

你说的是包含公式关闭还是自动转换默认关闭

zhouyiqing0304 commented 1 month ago

包含公式关闭

zhouyiqing0304 commented 1 month ago

转换默认开启

ptsq-bot commented 1 month ago

两个按钮不行吗?

zhouyiqing0304 commented 1 month ago

可以啊,我就是这个意思,但是完整复制的按钮默认关闭

ptsq-bot commented 1 month ago

行吧,可以

boomzero commented 1 month ago

我们想要latex的哦~

说得好, this is a feature, not a bug

ptsq-bot commented 1 month ago

@boomzero 他要改的,你别关

zhouyiqing0304 commented 1 month ago

我去改一下

boomzero commented 1 month ago

两个按钮不行吗?

如果想这样的话, 直接选中然后 cmd+v 不就行了吗

ptsq-bot commented 1 month ago

两个按钮不行吗?

如果想这样的话, 直接选中然后 cmd+v 不就行了吗

这样没公式

boomzero commented 1 month ago

两个按钮不行吗?

如果想这样的话, 直接选中然后 cmd+v 不就行了吗

这样没公式

你这样也没公式

boomzero commented 1 month ago

https://www.xmoj.tech/problem.php?cid=7490&pid=2

ptsq-bot commented 1 month ago

两个按钮不行吗?

如果想这样的话, 直接选中然后 cmd+v 不就行了吗

这样没公式

你这样也没公式

但是zyq这个搞完之后就有了呀

zhouyiqing0304 commented 1 month ago

两位冷静一下,我把https://www.xmoj.tech/problem.php?cid=7490&pid=2 的也加一下

boomzero commented 1 month ago

https://www.xmoj.tech/problem.php?cid=7420&pid=0

boomzero commented 1 month ago

https://www.xmoj.tech/problem.php?cid=7426&pid=0 ($$\sum$$)

boomzero commented 1 month ago

不可能加入所有latex符号

zhouyiqing0304 commented 1 month ago

...

boomzero commented 1 month ago

https://www.xmoj.tech/problem.php?id=7684

zhouyiqing0304 commented 1 month ago

image @boomzero

boomzero commented 1 month ago

https://www.xmoj.tech/problem.php?id=7684

boomzero commented 1 month ago
image
zhouyiqing0304 commented 1 month ago

我看不了这题

zhouyiqing0304 commented 1 month ago

这不就是箭头嘛

boomzero commented 1 month ago

反正现在你复制出来是

求

(A \Uparrow N) \bmod M

其中 A \Uparrow N 定义如下:

a \Uparrow n =\begin{cases} 1 & (n=0) \\ a ^ {a \Uparrow ({n-1})} & (其他情况) \end{cases}

修好了再说吧...

boomzero commented 1 month ago

哪有用户会看这个的 不是以用户为中心吗 @ptsq-bot

看来你不知道这个是干什么的

boomzero commented 1 month ago

是用来把题目转移到其他平台的