-
/usr/lib/python3.11/site-packages/setuptools/dist.py:745: SetuptoolsDeprecationWarning: Invalid dash-separated options
!!
******************************************************************…
-
有的时候当n,m满足一些条件,又无重边自环的时候,满足条件的图是不存在的。尤其是点数很小的时候。这会导致死循环。是否考虑判定一下图的合法性,虽然想了一下好像很毒瘤。
-
我写了一个这样的数据生成器:
```python
from cyaron import *
test_data = IO(file_prefix="small", data_id=1)
n = randint(1, 4000)
test_data.input_writeln(n)
a = Vector.random(n, [(0, 1000)])
test_data.in…
GEJXD updated
4 months ago
-
rt,希望能新增生成仙人掌的功能
-
https://ouuan.github.io/ouuan-%E7%9A%84%E5%87%BA%E9%A2%98%E8%A7%84%E8%8C%83/
首先,你需要意识到,自己出的题是要给别人做的。
ouuan updated
4 years ago
-
Input
```
1.1.3.0/24 via A
1.1.1.0/24 via A
1.1.0.0/24 via B
1.1.2.0/24 via B
```
这种情况下看起来是1&2, 3&4可以merge
但是如果都merge了,那就寄了,路由表有歧义
```
1.1.0.0/22 via A
1.1.0.0/22 via B
```
如果选一个mer…
-
```python
while True:
input_io = IO()
input_io.input_writeln(randint(1,100))
Compare.program("a.exe", "b.exe", input=input_io, std_program="std.exe")
# 不断地生成测试数据(这里是1到100的随机数),然后放到a.…
-
# 夜空はなんでも知ってるの?
![image](https://user-images.githubusercontent.com/10410257/28745855-e2eab430-74b3-11e7-9dcb-6d0bb5702fea.png)
## 歌曲信息
- 专辑:元気全開DAY!DAY!DAY!
- 作词:畑 亜貴
- 作曲:Kon k
- …
-
当我使用在以下代码所生成的数据上跑SPFA的时候,我的SPFA程序一共进行了25,000次进队+访问边的操作。(正好是边数+点数,这正好是理论最优的复杂度)
```python
with open("test-spfa-10000-cyaron", "w") as f:
g = Graph.hack_spfa(10000, weight_limit = 20)
f.wr…
-
Luogu_P_5653_gen.py
```python
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.inp…