We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Luogu_P_5653_gen.py
import cyaron as c N=10 K=3 while True: io=c.IO("1.in") n=c.randint(1,N) m=c.randint(1,n) k=c.randint(3,K) io.input_writeln(1) io.input_writeln(n,m,k) a=c.Vector.random(n,[(1,k)],2) io.input_writeln(a) c.Compare.program("./Luogu_P_9653.bitfile",input=io, std_program="./Luogu_P_9653_std.bitfile")
使用该代码对拍时发现 Vector.random 的参数 mode 未生效。 经测试,似乎是由于枚举 VectorRandomMode.repeatable 不能直接与 int 类型的 mode 比较导致。 望修复。
Vector.random
mode
VectorRandomMode.repeatable
int
The text was updated successfully, but these errors were encountered:
Fix:luogu-dev#109
fdfd461
对的,不生效,我目前都是自己改了库包代码。
Sorry, something went wrong.
可以使用这个语法来生成可重复值 Vector.random(n, [(1, 1000000)], vector.VectorRandomMode.repeatable)
No branches or pull requests
Luogu_P_5653_gen.py
使用该代码对拍时发现
Vector.random
的参数mode
未生效。经测试,似乎是由于枚举
VectorRandomMode.repeatable
不能直接与int
类型的mode
比较导致。望修复。
The text was updated successfully, but these errors were encountered: